摘要: #import #import #import @interface NSData (AES256) -(NSData *) aes256_encrypt:(NSString *)key; -(NSData *) aes256_decrypt:(NSString *)key; @end #import "NSData+AES256.h" @implementation NSD... 阅读全文
posted @ 2016-08-18 16:46 Show撑腰 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 我是用来标识唯一设备的,因为苹果不让用udid了,所以用的open udid的第三方一个类。 OpenUDID的类比较长就不在这里发了,需要的可以去网上下,实在搜不到可以找我要。 下面说下用keychain来存取。 参考网站:http://blog.csdn.net/sqq521/article/d 阅读全文
posted @ 2016-03-21 17:41 Show撑腰 阅读(624) 评论(0) 推荐(0) 编辑
摘要: UIView *shangOk = [[UIView alloc]initWithFrame:CGRectMake(0, 0, Width, Height-100)]; UIWindow* currentWindow = [UIApplication sharedApplication].keyWi 阅读全文
posted @ 2016-03-10 17:49 Show撑腰 阅读(169) 评论(0) 推荐(0) 编辑
摘要: #import "AFHTTPRequestOperationManager.h" @interface NetworkTools : AFHTTPRequestOperationManager + (instancetype)shareNetworkTools; @end #import "Net 阅读全文
posted @ 2016-01-31 09:49 Show撑腰 阅读(149) 评论(0) 推荐(0) 编辑
摘要: - (void)willPresentAlertView:(UIAlertView *)alertView { // 遍历 UIAlertView 所包含的所有控件 for (UIView *tempView in alertView.subviews) { if ([tempView isKind 阅读全文
posted @ 2016-01-28 17:52 Show撑腰 阅读(336) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"// @"frame"#define keyPath(objc, keyPath) @(((void)objc.keyPath, #keyPath))// 在宏里面如果在参数前添加了#,就会把参数变成C语言字符串// 获取屏幕的宽度#define ... 阅读全文
posted @ 2016-01-27 07:56 Show撑腰 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import #import @interface ViewController ()/** 地理编码 */@property (nonatomic, strong) CLGeocoder *geoC;@end@implementation Vi... 阅读全文
posted @ 2016-01-20 08:12 Show撑腰 阅读(227) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@property (nonatomic, weak) UIView *cover;@property (nonatomic, assign) CGPoint oriP;@property (... 阅读全文
posted @ 2016-01-18 21:45 Show撑腰 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@end@implementation ViewCont... 阅读全文
posted @ 2016-01-18 21:41 Show撑腰 阅读(147) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController () @property (nonatomic, weak) AVCaptureSession *session;@property (nonatomic, weak) AVCap... 阅读全文
posted @ 2016-01-18 21:40 Show撑腰 阅读(148) 评论(0) 推荐(0) 编辑