随笔分类 -  objective

摘要://<4> 创建16个UIImageView显示分割以后的小图片 for(int i = 0;i<4;i++) { for(int j = 0;j<4;j++) { UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectM 阅读全文
posted @ 2016-08-19 18:07 zuidap 阅读(601) 评论(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 阅读(220) 评论(0) 推荐(0) 编辑
摘要:tabbar文字颜色与大小 [self.tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName : [UIFont fontWithNa 阅读全文
posted @ 2016-08-12 10:40 zuidap 阅读(1513) 评论(0) 推荐(0) 编辑
摘要:打印所有系统字体名字 创建可拉伸图片 talkBubbleImageView.image = [[UIImage imageNamed:@"Grey@2x"] stretchableImageWithLeftCapWidth:20 topCapHeight:26]; 获取文字长度 NSDiction 阅读全文
posted @ 2016-08-12 10:28 zuidap 阅读(178) 评论(0) 推荐(0) 编辑
摘要:UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; if(UIRemoteNotificationTypeNone != type){ NSLog(@" 阅读全文
posted @ 2016-08-12 10:22 zuidap 阅读(587) 评论(0) 推荐(0) 编辑
摘要:如果想知道一个view相对于屏幕或者另外一个view 的坐标,那么可以通过如下的方法得到: UIWindow * window=[[[UIApplication sharedApplication] delegate] window]; CGRect rect=[view convertRect: 阅读全文
posted @ 2016-08-12 10:09 zuidap 阅读(781) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示