![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios代码片段
金花王子
这个作者很懒,什么都没留下…
展开
-
ios开发---字符串分割
NSArray *dateArray = [date componentsSeparatedByString:@"-"]; NSString *year = [dateArray objectAtIndex:0]; NSString *month = [dateArray objectAtIndex:1]; NSString *day = [dateArray object原创 2014-02-02 12:24:59 · 753 阅读 · 0 评论 -
ios开发---自定义导航栏
//****************************************************************************************** //创建一个导航栏 //***************************************************************************************原创 2014-02-04 15:31:54 · 576 阅读 · 0 评论 -
iOS开发---改变UINavigationBar导航条标题颜色和字体
[self.navigationController.navigationBar setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor colorWithRed:0 green:0.7 blue:0.8 alpha:1], UITextAttributeTextColor,原创 2014-02-17 11:04:46 · 655 阅读 · 0 评论 -
ios开发---将TableViewCell选中样式改为无色
cell.selectionStyle =UITableViewCellSelectionStyleNone;//将选中样式改为无色下面是TableViewCell的几种选中样式typedef NS_ENUM(NSInteger, UITableViewCellSelectionStyle) { UITableViewCellSelectionStyleNon原创 2014-02-18 18:45:49 · 685 阅读 · 0 评论 -
ios开发---获取App版本号
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; NSString *name = [infoDictionary objectForKey:@"CFBundleDisplayName"]; NSString *version = [infoDictionary objectForKey:@"CFB原创 2014-03-07 14:25:18 · 569 阅读 · 0 评论