上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 32 下一页
摘要: 1:AFNetwork判断网络状态 2:UIButton倒计时 3:判断iphone设备 4:在IOS8以下报一个自动布局的BUG,而在IOS8却能正常运行 5:与JS交互,并把JS代码兼容android跟IOS - (IBAction)sdfsdfsdf:(id)sender { [self.we 阅读全文
posted @ 2015-04-22 17:20 踏浪帅 阅读(880) 评论(0) 推荐(1) 编辑
摘要: 1:打开Xcode,然后闪退,报加载某库出现异常如/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib这个是Xcode的bug,我的情况是打开某个项目... 阅读全文
posted @ 2015-04-14 23:33 踏浪帅 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 1:如何给表格单元列增加选择时的背影效果if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier... 阅读全文
posted @ 2015-04-01 21:19 踏浪帅 阅读(709) 评论(0) 推荐(0) 编辑
摘要: 1:两种方法删除NSUserDefaults所有记录//方法一NSString *appDomain = [[NSBundle mainBundle] bundleIdentifier];[[NSUserDefaults standardUserDefaults] removePersistentD... 阅读全文
posted @ 2015-04-01 18:02 踏浪帅 阅读(802) 评论(0) 推荐(0) 编辑
摘要: 1:用UIImageView作为背景,但直接把按钮或者UITextField放在上面无法相应事件。解决办法:UIImageView默认的UserInteractionEnabled是NO,把它修改成YES,或者可以直接在XCODE上面的view有个属性勾选User Interaction Enabl... 阅读全文
posted @ 2015-02-28 16:36 踏浪帅 阅读(738) 评论(0) 推荐(0) 编辑
摘要: 18:图片视图几种填充样式_imgView.contentMode = UIViewContentModeScaleAspectFill;如下:typedef NS_ENUM(NSInteger, UIViewContentMode) { UIViewContentModeScaleToFil... 阅读全文
posted @ 2015-01-09 16:12 踏浪帅 阅读(950) 评论(0) 推荐(1) 编辑
摘要: 9:第三方插件整理JSON转实体:jsonModel https://github.com/icanzilb/JSONModel/美化按键:BButton https://github.com/mattlawer/BButton状态栏提示:JDStatusBarNotification http... 阅读全文
posted @ 2015-01-08 16:09 踏浪帅 阅读(950) 评论(0) 推荐(1) 编辑
摘要: 1:UITextField设置出现清除按键self.textField.clearButtonMode = UITextFieldViewModeWhileEditing;说明:UITextField.clearButtonMode:清空输入的字符,有以下几种模式UITextFieldViewMod... 阅读全文
posted @ 2015-01-06 15:09 踏浪帅 阅读(774) 评论(2) 推荐(2) 编辑
摘要: 三十八:各个版本IPHONE分辨率及图片的实现原理desert@2x : iPhone 4s (320 x 420)desert-568h@2x : iPhones 5, 5C and 5S (320 x 568)desert-667h@2x : iPhone 6 (375 x 667)desert... 阅读全文
posted @ 2014-12-30 14:29 踏浪帅 阅读(1000) 评论(0) 推荐(1) 编辑
摘要: 三十三:IOS多视图跳转方法第一种:跳转:[self presentModalViewController:control animated:YES];返回:[self dismissModalViewControllerAnimated:YES];第二种:跳转:[self.navigationCo... 阅读全文
posted @ 2014-12-25 10:07 踏浪帅 阅读(779) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 32 下一页