摘要: let string = "点击注册按钮,即表示您已同意隐私条款和服务协议" let ranStr = "同意" let attrstring:NSMutableAttributedString = NSMutableAttributedString(string:string) let str = 阅读全文
posted @ 2016-08-12 17:11 zuidap 阅读(5885) 评论(0) 推荐(0) 编辑
摘要: label 不同颜色 UILabel* noteLabel = [[UILabel alloc] init]; noteLabel.frame = CGRectMake(60, 100, 200, 100); noteLabel.textColor = [UIColor blackColor]; n 阅读全文
posted @ 2016-08-12 10:47 zuidap 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-08-12 10:44 zuidap 阅读(151) 评论(0) 推荐(0) 编辑
摘要: tabbar文字颜色与大小 [self.tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName : [UIFont fontWithNa 阅读全文
posted @ 2016-08-12 10:40 zuidap 阅读(1507) 评论(0) 推荐(0) 编辑
摘要: 打印所有系统字体名字 创建可拉伸图片 talkBubbleImageView.image = [[UIImage imageNamed:@"Grey@2x"] stretchableImageWithLeftCapWidth:20 topCapHeight:26]; 获取文字长度 NSDiction 阅读全文
posted @ 2016-08-12 10:28 zuidap 阅读(177) 评论(0) 推荐(0) 编辑
摘要: UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; if(UIRemoteNotificationTypeNone != type){ NSLog(@" 阅读全文
posted @ 2016-08-12 10:22 zuidap 阅读(584) 评论(0) 推荐(0) 编辑
摘要: shift + cmd + n 新建项目 cmd + n 新建文件 视图 option + cmd + 回车 打开助理编辑器 cmd + 回车 显示主窗口 cmd + 0 导航窗口 option + cmd + 0 工具窗口 在.m & .h之间切换 control + cmd + 上/下 按照浏览 阅读全文
posted @ 2016-08-12 10:12 zuidap 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 如果想知道一个view相对于屏幕或者另外一个view 的坐标,那么可以通过如下的方法得到: UIWindow * window=[[[UIApplication sharedApplication] delegate] window]; CGRect rect=[view convertRect: 阅读全文
posted @ 2016-08-12 10:09 zuidap 阅读(772) 评论(0) 推荐(0) 编辑