技术文章分类(180)

技术随笔(11)

文章分类 -  IOS开发

摘要:材料:logo(png格式):1024*1024,120*120,114*114,80*80,58*58,57*57,29*29screenshot img:每种分辨率5张,launchImg:每种分辨率1张(一定是png格式)分辨率:640*1136,640*960,750*1134,1080*1... 阅读全文
posted @ 2014-09-01 22:43 坤哥MartinLi 阅读(259) 评论(0) 推荐(0) 编辑
摘要:方法一:UIKeyboardViewController可以很方便的隐藏键盘步骤:1,在.h import "UIKeyboardViewController.h" ,继承协议:UIKeyboardViewControllerDelegate2,定义全局变量UIKeyboardViewControl... 阅读全文
posted @ 2014-09-01 14:56 坤哥MartinLi 阅读(889) 评论(0) 推荐(0) 编辑
摘要:demo下载:https://github.com/MartinLi841538513/BVReorderTableViewDemo使用很简单,最好看看demo下面是是解释,是官方解释Copy BVReorderTableView.h and BVReorderTableView.m files t... 阅读全文
posted @ 2014-09-01 09:39 坤哥MartinLi 阅读(190) 评论(0) 推荐(0) 编辑
摘要:Demo下载:https://github.com/MartinLi841538513/PrototypeCellDemo我这里在UIViewController 添加UITableView1,添加UITableView,生成Outlet,设置dataSource,delegate代理对象为Cont... 阅读全文
posted @ 2014-08-31 19:22 坤哥MartinLi 阅读(421) 评论(0) 推荐(0) 编辑
摘要:addChildViewController childViewController.view.frame = CGRectMake(0, 100, 320, 300); [self addChildViewController:childViewController]; [sel... 阅读全文
posted @ 2014-08-27 09:35 坤哥MartinLi 阅读(864) 评论(0) 推荐(0) 编辑
摘要:demo下载:https://github.com/MartinLi841538513/JsonModelDemo2简单说,就是dictionary to model. 专业一些就是:解析json数据。可以为您省下大量的代码,时间,精力,还能提高准确度。操作步骤:一,引入JsonModel :这里我... 阅读全文
posted @ 2014-08-26 11:50 坤哥MartinLi 阅读(1210) 评论(0) 推荐(0) 编辑
摘要:网易公开课ios开发:http://v.163.com/movie/2014/1/B/P/M9H7S9F1H_M9H80K2BP.htmldemo下载:https://github.com/MartinLi841538513/AutoLayoutDemo(demo跟下面的解释有些许不一样,但是不妨碍... 阅读全文
posted @ 2014-08-26 09:14 坤哥MartinLi 阅读(1046) 评论(0) 推荐(0) 编辑
摘要:demo:https://github.com/MartinLi841538513/GSKeychainDemoiOS的keychain服务提供了一种安全的保存私密信息(密码,序列号,证书等)的方式,每个ios程序都有一个独立的keychain存储。相对于NSUserDefaults、文件保存等一般... 阅读全文
posted @ 2014-08-24 18:43 坤哥MartinLi 阅读(311) 评论(0) 推荐(0) 编辑
摘要:demo下载:https://github.com/MartinLi841538513/FXBlurViewDemo原理很简单(建议下载demo):实现模糊图片的效果。其本质就是在清晰图片imageview上面添加一层view,这层view既是半透明,又是模糊的。且模糊的程度可以设置。 sel... 阅读全文
posted @ 2014-08-24 17:19 坤哥MartinLi 阅读(1227) 评论(0) 推荐(0) 编辑
摘要:这个有点太容易了。原理也很简单,就是对UIImageView进行了category拓展方法。基本操作:1,引入SDWebImage库2,#import 3,[imgView sd_setImageWithURL:[NSURL URLWithString:@"http://earea.stcyclub... 阅读全文
posted @ 2014-08-23 10:28 坤哥MartinLi 阅读(474) 评论(0) 推荐(0) 编辑
摘要:demo下载:https://github.com/MartinLi841538513/ParseDemo先简单简介:Parse相当于你有了自己的后台和服务器。其好处将不言而喻。功能:1:自定义数据字典2:消息推送3:地理位置4:数据缓存5:离线数据同步6:云端自定义代码7:二进制文件读取使用操作:... 阅读全文
posted @ 2014-08-22 22:15 坤哥MartinLi 阅读(614) 评论(0) 推荐(0) 编辑
摘要:demo下载:https://github.com/MartinLi841538513/RBStoryboardLinkDemo操作步骤:1,引入RBStoryboardLink库,我这里是用pod管理库。在Podfile文件中添加:pod 'RBStoryboardLink', '~> 0.1',... 阅读全文
posted @ 2014-08-22 11:45 坤哥MartinLi 阅读(1361) 评论(0) 推荐(0) 编辑
摘要:关于他们之间的本质区别,我就不多说了,网上有很多说的非常详细透彻的资料。但是关于使用,为什么这么使用,网上的资料却很少,或者说很不好找assign复制地址和数据,retain复制数据,新地址,copy新地址,新数据(数据==原来的数据)assign:对基础数据类型 (NSInteger等)和C数据类... 阅读全文
posted @ 2014-08-22 08:54 坤哥MartinLi 阅读(974) 评论(0) 推荐(0) 编辑
摘要:每个class,你在使用之前都必须初始化它,但是有些class初始化有很多种方式,有些系统默认给了你一种初始化方式,而你一定要搞定默认的哪种,为什么是这种。initWithCoder的调用:官方解释:In that case, theinitWithCodermethod gets called w... 阅读全文
posted @ 2014-08-20 22:48 坤哥MartinLi 阅读(381) 评论(0) 推荐(0) 编辑
摘要:demo下载:https://github.com/MartinLi841538513/Seguesegue:读'seɡweɪ',也叫“故事板联线”。有:push,modal,和custom三种不同的类型push:需要头一个界面是Navigation Controller.这里push相当于[nav... 阅读全文
posted @ 2014-08-20 22:38 坤哥MartinLi 阅读(729) 评论(0) 推荐(0) 编辑
摘要:今天挺忙,先不多说了,我今天就是参考这篇成功的,其实很容易的。只是网上的版本太多,把人给弄混淆了。http://www.360doc.com/content/14/0309/10/11029609_358970353.shtml1,打开终端,$ sudo gem install cocoapods2... 阅读全文
posted @ 2014-08-19 21:43 坤哥MartinLi 阅读(700) 评论(0) 推荐(0) 编辑
摘要:demo:https://github.com/MartinLi841538513/PullDownAndUpLoadDataInTableView这里引入了一个第三方:MJRefresh,着实好用,稳定。(不多说,代码再次,一看就明白了)//// RewardRecordsViewControl... 阅读全文
posted @ 2014-08-19 21:36 坤哥MartinLi 阅读(372) 评论(0) 推荐(0) 编辑
摘要:Cocoa SDK定义:NSUserDefaults只能存取: NSString, NSNumber, NSData, NSArray, NSDictionary类型数据。当你需要存取一个NSObject时,那么需要做两步操作。1,对你的object的属性进行编码和解码2,在存取时使用NSKeyed... 阅读全文
posted @ 2014-08-18 15:01 坤哥MartinLi 阅读(371) 评论(0) 推荐(0) 编辑
摘要:如果你有使用autoLayout,你会发现警告特多,尤其是Ambiguous(布局混淆,不确定,意味着不同的设备会出现不一样的布局)。这里我也是初步探讨,并且将会持续更新博客我的理解想要不出现警告,那么就必须对控件的frame设置完成,当然就包括,x,y,width,height。有图有真相(相信你... 阅读全文
posted @ 2014-08-16 14:48 坤哥MartinLi 阅读(166) 评论(0) 推荐(0) 编辑
摘要:完整demo下载:https://github.com/MartinLi841538513/UITableViewCellButton首先假设你已经会了自定义UITableViewCell(不会的请参考:http://www.cnblogs.com/MartinLi841538513/article... 阅读全文
posted @ 2014-08-12 14:44 坤哥MartinLi 阅读(533) 评论(0) 推荐(0) 编辑