2013年3月28日

iOS中实现多参数传递

摘要: iOS中实现多参数传递。@interface NSMutableArray (variadicMethodExample)- (void)appendObjects:(id)firstObject, ...; // This method takes a nil-terminated list of objects.@end@implementation NSMutableArray (variadicMethodExample)- (void)appendObjects:(id)firstObject, ...{ id eachObject; va_list argumentLi... 阅读全文

posted @ 2013-03-28 10:40 fenglaileyo 阅读(216) 评论(0) 推荐(0)

2013年3月12日

Safari回传值给应用程序

摘要: 在IOS应用中,一般做第三方登录时会用safari打开一网站登录,登录成功后返回程序也简单。在你的Info.plist文件中添加URL types,如图网页中<a href="MyApp:back value">back to app</a>。在你的程序中处理- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url就可以了 阅读全文

posted @ 2013-03-12 17:03 fenglaileyo 阅读(122) 评论(0) 推荐(0)

NSRunLoop

摘要: 一、类定义 + (NSRunLoop *)currentRunLoop 如果调用的线程中没有runloop,那么将会创建一个并返回 + (NSRunLoop *)mainRunLoop 返回主线程的runloop - (void)acceptInputForMode:(NSString *)mode beforeDate:(NSDate *)limitDate 运行loop一次或者直到limitDate。如果没有input sources加入到这个loop,那么马上返回;否则一直运行到limitDate,或者接口到一个input source然后返回。 - (void... 阅读全文

posted @ 2013-03-12 16:42 fenglaileyo 阅读(168) 评论(0) 推荐(0)

2013年2月21日

(转) iphone开发资源汇总

摘要: 如何用Facebook graphic api上传视频:http://developers.facebook.com/blog/post/532/Keychain保存数据封装:https://github.com/carlbrown/PDKeychainBindingsController对焦功能的实现:http://www.clingmarks.com/?p=612自定义圆角Switch按件:https://github.com/domesticcatsoftware/DCRoundSwitch弹出窗口For iphone and ipad:https://github.com/chrism 阅读全文

posted @ 2013-02-21 16:27 fenglaileyo 阅读(513) 评论(0) 推荐(3)

导航