![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 110 阅读 · 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 · 80 阅读 · 0 评论 -
des加解密
//加密+ (NSString *) encryptUseDES:(NSString *)plainText key:(NSString *)key{ NSString *ciphertext = nil; NSData *textData = [plainText dataUsingEncoding:NSUTF8StringEncoding]; ...原创 2015-03-24 19:50:10 · 67 阅读 · 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 · 76 阅读 · 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 · 77 阅读 · 0 评论