04 2015 档案

摘要:转自:http://www.cocoachina.com/ios/20141219/10702.html前言1MagicNumber->autoresizingMask->autolayout以上是纯手写代码所经历的关于页面布局的三个时期在iphone1-iphone3gs时代 window的siz... 阅读全文
posted @ 2015-04-29 10:57 apem 阅读(144) 评论(0) 推荐(0)
摘要:服务端 (启用)ID Name LastUpdateTime1 xxxx 2014-10-13 13:50:442 xxxx ..3 xxxx ..4 xxxx ..服务器同步操作:每次进入客户端, 就把LastUpdateTime > 本地记录最大的LastUpdateTimeLa... 阅读全文
posted @ 2015-04-24 17:27 apem 阅读(1068) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/haishu_zheng/article/details/12873151category和extension用来做类扩展的,可以对现有类扩展功能或者修改其功能。在iOS中category应用是非常广泛的,系统自带的很多类都有多个category扩展功能。一... 阅读全文
posted @ 2015-04-21 15:16 apem 阅读(140) 评论(0) 推荐(0)
摘要:竖屏情况下: [UIScreen mainScreen].bounds.size.width = 320[UIScreen mainScreen].bounds.size.width = 568横屏情况下:[UIScreen mainScreen].bounds.size.width =568[UI... 阅读全文
posted @ 2015-04-14 23:41 apem 阅读(378) 评论(0) 推荐(0)
摘要:JSONModelhttps://github.com/icanzilb/JSONModel/一. 获取属性的元数据const char *attrs = property_getAttributes(property);propertyAttributes=T@"NSArray",&,N,V_Or... 阅读全文
posted @ 2015-04-14 14:26 apem 阅读(747) 评论(0) 推荐(0)
摘要:iPhone socket 编程之BSD Socket篇 收藏在进行iPhone网络通讯程序的开发中,不可避免的要利用Socket套接字。iPhone提供了Socket网络编程的接口CFSocket,不过笔者更喜欢使用BSD Socket。iPhone BSD Socket进行编程所需要的头文件基本... 阅读全文
posted @ 2015-04-14 10:35 apem 阅读(230) 评论(0) 推荐(0)
摘要:UIImage 方向UIImage imageOrientation是相对当前屏幕的横竖屏来判断方向如果本身是横屏, 照片也是横屏的话, 方向是正方向 BOOL b1 = (originalImage.imageOrientation == UIImageOrientationUp || ... 阅读全文
posted @ 2015-04-13 13:29 apem 阅读(533) 评论(0) 推荐(0)
摘要:那么你需要在你下载证书的那个电脑上从钥匙串--》选择证书--》右键到处证书,保存为.p12的证书,以后这个证书拷贝到任何电脑上去都是可以使用的!本来只有一台电脑可以测试, 现在要团队开发测试1.导出这台有证书的电脑上的 开发证书, 开发证书密钥, 发布证书为.p12证书, 通过U盘或者qq发送到另一... 阅读全文
posted @ 2015-04-13 10:52 apem 阅读(186) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/lihuiqwertyuiop/article/details/39268101总结: 1. 创建.pch文件2. Apple LLVM 6.1 - Language 目录下的 Precompile Prefix Header 选择为: YES3. Appl... 阅读全文
posted @ 2015-04-12 16:25 apem 阅读(233) 评论(0) 推荐(0)
摘要:http://my.oschina.net/CgShare/blog/302303渐进式下载(伪流媒体)介于下载本地播放与实时流媒体之间的一种播放形式,下载本地播放必须全部将文件下载完成后才能播放,而渐进式下载不必等到全部下载完成后再播放,它可以一边下载一边播放,在完成播放内容之后,整个文件会保存在... 阅读全文
posted @ 2015-04-11 11:08 apem 阅读(866) 评论(0) 推荐(0)
摘要:首先看一下典型的NSString与CFStringRef的相互转换http://www.tuicool.com/articles/MJRr226// CFStringRef to NSString *NSString *yourFriendlyNSString = (__bridge NSStrin... 阅读全文
posted @ 2015-04-10 16:42 apem 阅读(890) 评论(0) 推荐(0)
摘要:- (CLLocationManager *)locationManager{ if (!_locationManager) { _locationManager = [[CLLocationManager alloc] init]; _locationManage... 阅读全文
posted @ 2015-04-08 17:53 apem 阅读(249) 评论(0) 推荐(0)
摘要:- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath{ return @"删除";}- (UITab... 阅读全文
posted @ 2015-04-04 10:42 apem 阅读(140) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/ygm900/archive/2013/05/28/3104169.htmlUIButton*btnTemp = [UIButtonbuttonWithType:UIButtonTypeCustom];深度定制一个按钮UIButton *btn1 = [... 阅读全文
posted @ 2015-04-03 17:54 apem 阅读(272) 评论(0) 推荐(0)
摘要:1.prepareFoSegue注意问题使用该方法设置的值, 必须要 viewWillApear之后用2.storayboard的使用autolayout, constant = -16, 刚好在frame上为02.1 ipad上需要 constant = -24 才能在frame上为 03.sto... 阅读全文
posted @ 2015-04-02 21:47 apem 阅读(359) 评论(0) 推荐(0)