上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
  2012年7月21日
摘要: 1、在appdelegate.m中找到 “application:didFinishLaunchingWithOptions:” 通过NSUserDefaults 来进行判断 if (![[NSUserDefaultsstandardUserDefaults] boolForKey:@"everLaunched"]) { [[NSUserDefaultsstandardUserDe... 阅读全文
posted @ 2012-07-21 14:28 easonoutlook 阅读(929) 评论(0) 推荐(0) 编辑
  2012年7月18日
摘要: 1、在需要接收NSNotification的类里面的init方法中添加Observer,同时添加对应的处理方法,如: 在需要处理的类Class1的init方法中[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(notificationFunc:) name:NOTIFY_FUNC_DEMO objec... 阅读全文
posted @ 2012-07-18 13:21 easonoutlook 阅读(361) 评论(0) 推荐(0) 编辑
  2012年7月12日
摘要: auto 这个这个关键字用于声明变量的生存期为自动,即将不在任何类、结构、枚举、联合和函数中定义的变量视为全局变量,而在函数中定义的变量视为局部变量。这个关键字不怎么多写,因为所有的变量默认就是auto的。 register 这个关键字命令编译器尽可能的将变量存在CPU内部寄存器中而不是通过内存寻址访问以提高效率。 static 常见的两种用途: 1>统计函数被调用的次数; ... 阅读全文
posted @ 2012-07-12 10:34 easonoutlook 阅读(315) 评论(0) 推荐(0) 编辑
  2012年7月5日
摘要: 需要在A类中修改B类的方法ClassA.h@protocol ClassADelegate //在类A中声明并且定义一个代理-(void)ChangeObjectFromClassB;@end@interface ClassA: NSObject { id delegate;}@property (nonatomic,assign) id delegate;@endClass... 阅读全文
posted @ 2012-07-05 21:24 easonoutlook 阅读(198) 评论(0) 推荐(0) 编辑
  2012年7月4日
摘要: 1、submodule的问题,需要同步到各个子模块,不然会有很多文件缺失,参考上一篇博文。 2、facebook的问题,各个模块的代码完成之后,facebook 的SDK有很多问题,各种问题,其实在国内的分享里面用不到facebook 果断删除facebook这块的代码,重新编译,这块没有问题了。 3、SBJSON的问题,由于ShareKit中使用的是SBJSON,而且添加的位置不对,放置... 阅读全文
posted @ 2012-07-04 11:17 easonoutlook 阅读(269) 评论(0) 推荐(0) 编辑
  2012年6月20日
摘要: http://blog.cnrainbird.com/index.php/2012/05/31/guan_yu_git_de_submodule/ 搞开发的都大都知道章鱼猫吧(github,哈哈~~)。里面有各种智慧的结晶合理利用,事半功倍。可是最近发现里面稍微复杂一些的工程都开始整submodule了。无论是直接zip下载,还是clone的,submodule都是空的,这样的运行肯定会提示缺少文... 阅读全文
posted @ 2012-06-20 18:04 easonoutlook 阅读(317) 评论(0) 推荐(0) 编辑
摘要: Mac OS Terminal 基本指令(全) Mac OS X 启用超级用户的方法Root user,又名超级用户,是一个权力最高的Unix 账户,Root 的账户能在整个系统里任何部份进行任何“操作”,包括:拷贝档案、移动/移除档案、执行程序等。所以,通常 Root 的账户都只会指派给高级专业的用户使用。因此,苹果把Root user 隐藏在MacOS X 里。但有时候我们不得不启用R... 阅读全文
posted @ 2012-06-20 13:38 easonoutlook 阅读(3449) 评论(0) 推荐(0) 编辑
  2012年6月19日
摘要: NSURL * nurl=[[NSURL alloc] initWithString:[urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; 阅读全文
posted @ 2012-06-19 20:33 easonoutlook 阅读(199) 评论(0) 推荐(0) 编辑
  2012年6月12日
摘要: -(void)setContentInset:(UIEdgeInsets)s { UIEdgeInsets insets = s; if(s.bottom>8) insets.bottom = 0; insets.top = 0; [super setContentInset:insets]; } http://www.hanspinckaers.com/multi-line-ui... 阅读全文
posted @ 2012-06-12 11:24 easonoutlook 阅读(469) 评论(0) 推荐(0) 编辑
  2012年6月8日
摘要: 写入plist文件 NSString *plistPath = @"/private/var/mobile/Media/iTunes_Control/iTunes/Ringtones.plist"; NSMutableDictionary *dictionary = [NSMutableDictionary dictionaryWithContentsOfFile:plis... 阅读全文
posted @ 2012-06-08 16:47 easonoutlook 阅读(417) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页