摘要: 1.本地生成打印源self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"打印" style:(UIBarButtonItemStylePlain) target:self action:@s... 阅读全文
posted @ 2015-08-09 22:39 古龙•历山大亚 阅读(205) 评论(0) 推荐(0)
摘要: 1.导入框架Security.framework2.编写工具类/* 该工具类只能保存一个用户和密码 *//* service 一般为 bundle ID */@interface GLKeyChainManage : NSObject+(void)save:(NSString *)service... 阅读全文
posted @ 2015-08-09 19:59 古龙•历山大亚 阅读(269) 评论(0) 推荐(0)
摘要: 1.重写canBecomeFirstResponder ,并返回YES-(BOOL)canBecomeFirstResponder{ return YES;}2.重写UIResponder的三个方法-(void)motionBegan:(UIEventSubtype)motion withEv... 阅读全文
posted @ 2015-08-09 19:37 古龙•历山大亚 阅读(309) 评论(0) 推荐(0)
摘要: 1.获取设备信息 NSLog(@"设备名称:%@",[[UIDevice currentDevice] systemName]); NSLog(@"版本号:%@",[[UIDevice currentDevice] systemVersion]); NSLog(@"设备名:%@",... 阅读全文
posted @ 2015-08-09 18:51 古龙•历山大亚 阅读(471) 评论(0) 推荐(0)