08 2016 档案
摘要://<4> 创建16个UIImageView显示分割以后的小图片 for(int i = 0;i<4;i++) { for(int j = 0;j<4;j++) { UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectM
阅读全文
摘要://MARK:系统跳到应用设置页面 func systemMySet(){ let url = NSURL(string: UIApplicationOpenSettingsURLString) if let url = url where UIApplication.sharedApplicati
阅读全文
摘要:let string = "点击注册按钮,即表示您已同意隐私条款和服务协议" let ranStr = "同意" let attrstring:NSMutableAttributedString = NSMutableAttributedString(string:string) let str =
阅读全文
摘要: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(@"
阅读全文
摘要:shift + cmd + n 新建项目 cmd + n 新建文件 视图 option + cmd + 回车 打开助理编辑器 cmd + 回车 显示主窗口 cmd + 0 导航窗口 option + cmd + 0 工具窗口 在.m & .h之间切换 control + cmd + 上/下 按照浏览
阅读全文
摘要:如果想知道一个view相对于屏幕或者另外一个view 的坐标,那么可以通过如下的方法得到: UIWindow * window=[[[UIApplication sharedApplication] delegate] window]; CGRect rect=[view convertRect:
阅读全文
摘要:一句话选择单个头像图片 新建ImagePickerViewController类: /* let imagePicker = ImagePickerViewController() imagePicker.delegate = self self.presentViewController(imag
阅读全文