iPhone开发技巧之私有API--- UIBarButtonItem
2012-07-03 14:51
344 查看
如上所示,UIBarButtonSystemItem 的 100 ~ 110 就是系统提供的一些未公开的标准icon。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | NSMutableArray *items = [NSMutableArray array]; UIBarButtonItem *item = nil; for (int i = 100; i <= 109; i++) { item = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:i target:nil action:nil]; item.style = UIBarButtonItemStyleBordered; [items addObject:item]; [item release]; } item = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:110 target:nil action:nil]; item.style = UIBarButtonItemStylePlain; [items addObject:item]; [item release]; toolbar.items = items; |
相关文章推荐
- iPhone开发技巧之私有API--- UIBarButtonItem
- iPhone开发技巧之私有API--- UIBarButtonItem
- iPhone开发技巧之私有API--- UIBarButtonItem
- iPhone开发技巧之私有API(4)--- UIBarButtonItem
- iPhone开发技巧之私有API(4)— UIBarButtonItem
- iPhone开发技巧之私有API--- UISegmentedControl
- iPhone开发技巧之私有API --- 设备相关信息
- iPhone开发技巧之私有API(3)--- UIButton
- iPhone开发技巧之私有API(2)--- UITableView
- iPhone开发技巧之私有API — 设备相关信息
- iPhone开发技巧之私有API — 设备相关信息
- iPhone开发技巧之私有API(1) --- 设备相关信息
- iPhone开发技巧之私有API(2)--- UITableView
- iPhone开发技巧之私有API(3)--- UIButton
- iPhone开发技巧之私有API
- iPhone开发技巧之私有API--- UITableView
- iPhone开发技巧之私有API(5)--- UISegmentedControl
- iPhone开发技巧之私有API--- 设置UIWebView中的User-Agent
- iPhone开发技巧之私有API(6)--- 设置UIWebView中的User-Agent
- iPhone开发技巧之私有API--- 用UIWebView访问BASIC认证的页面