摘要: 案例:开源中国iOS客户端 当我们新建一个工程的时候,在Supporting FIles文件下会看到一个以-Prefix.pch结尾文件的文件,pch全称是“precompiled header”,也就是预编译头文件,该文件里存放的工程中一些不常被修改的代码,比如常用的框架头文件,这样做的目的提... 阅读全文
posted @ 2014-08-25 12:12 xubojoy 阅读(430) 评论(0) 推荐(0) 编辑
摘要: NSArray *familyNames = [UIFont familyNames]; for( NSString *familyName in familyNames ){ NSLog(@"Family: %@",familyName); NSArray *f... 阅读全文
posted @ 2014-08-24 22:36 xubojoy 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 本文讲述了UITableView、UICollectionView实现self-sizing cell布局的知识,以及如何用InvalidationContext优化UICollectionView布局的更新。 背景 iOS越来越人性化了,用户可以在设置-通用-辅助功能中动态调整字体大小了。你会发现 阅读全文
posted @ 2014-08-24 22:29 xubojoy 阅读(729) 评论(1) 推荐(0) 编辑
摘要: 转载自CSDN --andyweike1. 编译iPad真机时,选择了 Architetures:Standard(armv6) BaseSDK:iPhoneDevice3.2 TargetDeviceFamily:iPad.若编译出现如下错误:Command /Developer/Platform... 阅读全文
posted @ 2014-08-23 20:36 xubojoy 阅读(545) 评论(0) 推荐(0) 编辑
摘要: if (![[NSUserDefaults standardUserDefaults] boolForKey:binding_sina_weibo_key]){ [[NSUserDefaults standardUserDefaults] setBool:YES forKey:binding_... 阅读全文
posted @ 2014-08-23 20:34 xubojoy 阅读(108) 评论(0) 推荐(0) 编辑
摘要: //1.缩放-(UIImage*)zoomImage:(UIImage*)imagetoScale:(CGSize)reSize{//根据要显示的大小等比例算出缩放后的图片大小NSLog(@"image=====w==%f\n--------image==%f\n\n",image.size.wid... 阅读全文
posted @ 2014-08-22 20:25 xubojoy 阅读(523) 评论(0) 推荐(0) 编辑
摘要: #pragma mark --- 初始化-(void) initUMengSDK{ [MobClick startWithAppkey:umeng_app_key reportPolicy:BATCH channelId:nil]; [MobClick checkUpdateWithDelegate... 阅读全文
posted @ 2014-08-22 20:24 xubojoy 阅读(278) 评论(0) 推荐(0) 编辑
摘要: @interface EaseMobProcessor : NSObject+(void) init:(UIApplication *)application launchOptions:(NSDictionary *)launchOptions;+(void) login;+(void) log... 阅读全文
posted @ 2014-08-19 20:05 xubojoy 阅读(959) 评论(0) 推荐(0) 编辑
摘要: //发送通知NSNotification*updateNotifi = [NSNotificationnotificationWithName:notification_name_update_pushobject:nil]; [[NSNotificationCenterdefaultCenter... 阅读全文
posted @ 2014-08-01 22:37 xubojoy 阅读(211) 评论(0) 推荐(0) 编辑
摘要: IOS armvArmv6:iPhone 2G/3G、ipod1G/2GArmv7:iPhone3GS/4/4s、ipod3G/4G、ipad1G/2G/3GArmv7s:iPhone5URL中含有%当你的接口中含有%22时你要将其替换为\",否则客户端是无妨访问。你将含有%22的接口复制到浏览器中... 阅读全文
posted @ 2014-08-01 22:34 xubojoy 阅读(214) 评论(0) 推荐(0) 编辑