
oc
iteye_2275
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
常用预定义
1.获取参数名#define NameOfParam(param) [NSString stringWithFormat:@"%s", #param]2.#ifdef DEBUG#define NSLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);#...原创 2015-03-12 21:32:54 · 141 阅读 · 0 评论 -
runtime
官方文档: https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjC...原创 2015-03-15 00:34:05 · 107 阅读 · 0 评论 -
des加解密
//加密+ (NSString *) encryptUseDES:(NSString *)plainText key:(NSString *)key{ NSString *ciphertext = nil; NSData *textData = [plainText dataUsingEncoding:NSUTF8StringEncoding]; ...原创 2015-03-24 19:50:10 · 93 阅读 · 0 评论 -
持久化 归档
//// User.h// YLEX//// Created by yelon on 15-4-1.// Copyright (c) 2015年 yelon. All rights reserved. // @interface User : NSObject<NSCoding>@property(nonatomic,strong) ...原创 2015-04-01 16:36:09 · 100 阅读 · 0 评论 -
ios 指纹验证
LAContext *myContext = [[LAContext alloc] init]; NSError *authError = nil; NSString *myLocalizedReasonString = @"String explaining why app needs authentication"; if ([myConte...原创 2015-04-08 15:46:30 · 107 阅读 · 0 评论