随笔分类 - objective
摘要://<4> 创建16个UIImageView显示分割以后的小图片 for(int i = 0;i<4;i++) { for(int j = 0;j<4;j++) { UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectM
阅读全文
摘要:label 不同颜色 UILabel* noteLabel = [[UILabel alloc] init]; noteLabel.frame = CGRectMake(60, 100, 200, 100); noteLabel.textColor = [UIColor blackColor]; n
阅读全文
摘要:tabbar文字颜色与大小 [self.tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName : [UIFont fontWithNa
阅读全文
摘要:打印所有系统字体名字 创建可拉伸图片 talkBubbleImageView.image = [[UIImage imageNamed:@"Grey@2x"] stretchableImageWithLeftCapWidth:20 topCapHeight:26]; 获取文字长度 NSDiction
阅读全文
摘要:UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; if(UIRemoteNotificationTypeNone != type){ NSLog(@"
阅读全文
摘要:如果想知道一个view相对于屏幕或者另外一个view 的坐标,那么可以通过如下的方法得到: UIWindow * window=[[[UIApplication sharedApplication] delegate] window]; CGRect rect=[view convertRect:
阅读全文