开发者

How to get system icons in iOS

开发者 https://www.devze.com 2023-02-02 22:59 出处:网络
I want to use icons like opened/closed folder in my table (UITableView)? UPD: For example, in J开发者_StackOverflow中文版ava you can get a standard image \"folder\" and use it in the FileTree:

I want to use icons like opened/closed folder in my table (UITableView)?

UPD: For example, in J开发者_StackOverflow中文版ava you can get a standard image "folder" and use it in the FileTree:

new DefaultTreeCellRenderer().getDefaultClosedIcon()

And also can use the constants of L&F (colors, styles, icons).

In the iOS, I found only these standard icons. But not folder icons...


I'm not quite sure exactly what you want - the folder icon from iOS? Could you explain a little better?

If it is a folder icon that you want, there's no quick way to get it from code - doing so would use private API's and your app is likely to be rejected from the app store.

If you want something like a folder icon, a good way to get it would be by taking a screenshot of the iPhone simulator and editing it to the right size etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消