iOS开发
izhangtt
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
设置tabbar有被选中的效果,添加背景
//设置tabbar有被选中的效果,添加背景 self.tabBar.selectionIndicatorImage = [UIImageimageNamed:@"tabon_bg"];原创 2016-03-31 14:58:47 · 383 阅读 · 0 评论 -
iOS UILabel根据字体,自适应宽度
//这个frame是初设的,没关系,后面还会重新设置其size。NSDictionary *attributes = @{NSFontAttributeName:[UIFont systemFontOfSize:20],};NSString *str = @"这里是lab里的内容";CGSize textSize = [str boundingRectWithSize:CGSizeMa转载 2016-08-31 10:39:24 · 3086 阅读 · 0 评论 -
iOS tabBarItem的选中与非选中时,背景颜色,字体颜色
//设置tabBar的背景颜色,使用的方法//设置tabbar的背景//tabBar和navigationBar结合使用,tabBarItem的图片设置原创 2016-07-18 09:28:02 · 6474 阅读 · 0 评论 -
iOS tabbarItem的颜色都是白色,点击其中一个,其他的不变,没有点中的效果
//未被选中的图片效果不变 [navigtion.tabBarItemsetTitleTextAttributes:[NSDictionarydictionaryWithObjectsAndKeys:[UIColorwhiteColor], NSForegroundColorAttributeName,nil] forState:UIControlStateNor原创 2016-06-21 17:53:56 · 1354 阅读 · 0 评论 -
iOS tabbar和navigation组合,点击item两次,会pop到上一个页面,解决不让控制器跳转的方法
问题描述:just found out something: If you have a Tabbar combined with a NavigationController (that has some views on it's stack) and you double click the TabBarItem, the view pops to the first ViewCon原创 2016-04-18 14:40:27 · 1534 阅读 · 0 评论 -
iOS 在tableView上消退键盘
给tableView添加手势UITapGestureRecognizer *gesture = [[UITapGestureRecognizeralloc]initWithTarget:selfaction:@selector(resignKeyBoardGestureWithTableView:)]; gesture.cancelsTouchesInView =NO原创 2016-05-24 16:44:49 · 1081 阅读 · 0 评论 -
iOS 在tableView或scrollView上,消退键盘
给tableView或scrollview添加手势1.UITapGestureRecognizer *gesture = [[UITapGestureRecognize alloc]initWithTarget:self action:@selector(resignKeyBoardGestureWithTableView:)];2.gesture.cancelsTouches原创 2016-04-15 14:12:36 · 550 阅读 · 0 评论 -
iOS 由中英文数字组成 正则表达式
NSString *regex = @"^[a-zA-Z0-9\u4e00-\u9fa5]+$"; NSPredicate *pre = [NSPredicatepredicateWithFormat:@"SELF MATCHES %@",regex]; BOOL isMatch = [pre evaluateWithObject:str];原创 2016-04-27 18:03:10 · 409 阅读 · 0 评论 -
iOS解决navigationBar因为图片尺寸问题造成的会向上偏移64的问题
在控制器里viewDidLoad里加入以下代码self.navigationController.navigationBar.translucent =NO;self.automaticallyAdjustsScrollViewInsets =NO;原创 2016-04-14 11:28:50 · 537 阅读 · 0 评论 -
隐藏底部的tabbar
在第一个控制器的跳转代码里加入:self.hidesBottomBarWhenPushed =YES;MorePlayRecordsViewController *morePlayRecordsVC = [MorePlayRecordsViewControllernew];morePlayRecordsVC.morePlayRecordsTag = [NSStr原创 2016-04-14 11:19:21 · 568 阅读 · 0 评论 -
pop跳转到指定的控制器
for (UIViewController *tempin self.navigationController.viewControllers) { if ([temp isKindOfClass:[MyLoginViewController class]]) { [self.navigationC原创 2016-04-08 11:19:27 · 1959 阅读 · 0 评论 -
iOS 设置NavigationItem的Title的字体大小和颜色
UIFont *font = [UIFontfontWithName:@"Arial-ItalicMT"size:21]; NSDictionary *dic =@{NSFontAttributeName:font, NSForegroundColorAttributeName: [UIColorwhiteColor]}; self.naviga原创 2016-03-24 10:37:42 · 11765 阅读 · 1 评论 -
iOS 点击按钮跳转到指定的TabBar
self.tabBarController.selectedIndex =0;原创 2016-03-24 10:16:56 · 10249 阅读 · 1 评论 -
provisioning profile doesn't include signing certificate
打包的时候出现 Library not loaded:@rpath/BoringSSL.framework ............. Reason: image not foundtarget->general->embedded binaries中加入动态库(.framework文件)原创 2017-07-03 11:21:03 · 6789 阅读 · 0 评论
分享