摘要: http://mobiledan.net/2012/03/02/5-options-for-distributing-ios-apps-to-a-limited-audience-legally/Imagine you’ve built an iOS app for a limited set of users. Since it requires authentication, the app is useless to the general public. Is the public App Store the only option to deploy this app without 阅读全文
posted @ 2013-11-18 00:07 菁菁工作室 阅读(718) 评论(0) 推荐(0) 编辑
摘要: NSArray *sortedArray = [array sortedArrayUsingComparator: ^(id obj1, id obj2) { if ([obj1 integerValue] > [obj2 integerValue]) {return (NSComparisonResult)NSOrderedDescending;} if ([obj1 integerValue] < [obj2 integerValue]) {return (NSComparisonResult)NSOrderedAscending;}return (NSComparisonRe 阅读全文
posted @ 2013-11-14 10:50 菁菁工作室 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 原Github地址:https://github.com/kattrali/Xcode5-Plugin-Template安装将本工成复制到~/Library/Developer/Xcode/Templates/Project Templates/Application Plug-in/Xcode5 Plugin.xctemplate。(如果路径不存在的话就创建Templates/Project Templates/Application Plug-in子目录)重启Xcode想创建一个新的Xcode插件的时候,就创建一个新工程,然后从OS X > Application Plug-in中选 阅读全文
posted @ 2013-11-12 10:00 菁菁工作室 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 实现Cell的滑动删除, 需要实现UITableView的代理UITableViewDelegate中如下方法://先要设Cell可编辑- (BOOL)tableView:(UITableView*)tableView canEditRowAtIndexPath:(NSIndexPath*)indexPath{returnYES;}//定义编辑样式- (UITableViewCellEditingStyle)tableView:(UITableView*)tableView editingStyleForRowAtIndexPath:(NSIndexPath*)indexPath{[table 阅读全文
posted @ 2013-11-11 17:21 菁菁工作室 阅读(324) 评论(0) 推荐(0) 编辑
摘要: strong与weak是由ARC新引入的对象变量属性ARC引入了新的对象的新生命周期限定,即零弱引用。如果零弱引用指向的对象被deallocated的话,零弱引用的对象会被自动设置为nil。@property(strong) MyClass *myObject;相当于@property(retain) MyClass *myObject;@property(weak) MyOtherClass *delegate;相当于@property(assign) MyOtherClass *delegate;强引用与弱引用的广义区别:强引用也就是我们通常所讲的引用,其存亡直接决定了所指对象的存亡。如果 阅读全文
posted @ 2013-11-11 13:05 菁菁工作室 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 一直忽略了越狱检测与越狱检测 绕过的问题,因为我认为在app争抢装机率的环境下,是不会在乎对方的设备越狱与否的。但很显然,我忽略了一个问题,app在设计的时候或许会依照设备是 否越狱而采取不同的流程,比如说对越狱的设备采取更多的安全措施,在这种场景下,越狱检测是否可靠就成为了关键问题。本篇文章主要介绍越狱检测的常见方法 (并配有相应的测试代码),以及最流行的越狱检测绕过插件xCon(会分析该工具会绕过哪些检测方法),最后总结了个人认为的比较可靠的越狱检测方法。一、越狱检测(一)《Hacking and Securing iOS Applications》这本书的第13章介绍了以下方面做越狱检测 阅读全文
posted @ 2013-11-09 00:24 菁菁工作室 阅读(2325) 评论(0) 推荐(0) 编辑
摘要: http://www.utilities-online.info/xmltojson/ 阅读全文
posted @ 2013-11-05 15:52 菁菁工作室 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 1、添加附件里面的KissXML到工程2、加入libxml2.dylib 到Frameworks3、修改工程信息,右击Targets下工程名选“Get Info”,进入修改Header Search Paths值为:/usr/include/libxml2,如附件图附件2为Demo,可运行。NSString *content = [NSString stringWithContentsOfURL: url encoding:NSUTF8StringEncoding ... 阅读全文
posted @ 2013-11-05 15:14 菁菁工作室 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 代码看完后感觉非常优秀http://stackoverflow.com/questions/8085188/ios-perform-action-after-period-of-inactivity-no-user-interaction1.新建 Objective-C 类,继承 UIApplication。2.编辑 .h 如下:#import // 定义应用程序超时时间,单位为分钟,因此我们会在这个数上乘以60,以便折算成秒数。#define kApplicationTimeoutInMinutes 5// 定义通知名称,其真实内容是字符串 "timed out"#def 阅读全文
posted @ 2013-10-31 15:40 菁菁工作室 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 单例模式在iOS开发过程中经常用到,苹果提供过objective c单例的比较官方的写法:static MyGizmoClass *sharedGizmoManager = nil; + (MyGizmoClass*)sharedManager{ @synchronized(self) { if (sharedGizmoManager == nil) { [[self alloc] init]; // assignment not done here } } return sharedGizmoManager;} + (id)... 阅读全文
posted @ 2013-10-31 13:54 菁菁工作室 阅读(290) 评论(0) 推荐(0) 编辑