IOS实用
等概率世界
这个作者很懒,什么都没留下…
展开
-
DLog和ALog
//DLog will output like NSLog only when the DEBUG variable is set #ifdef DEBUG # define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); #else # define D转载 2014-08-06 16:15:11 · 1106 阅读 · 0 评论 -
Core Location和MapKit的一些简单使用
mapkitcllocationannotationsmanageruiviewstruct 目录(?)[-] Core LocationMapKit转载 2014-08-06 20:24:51 · 372 阅读 · 0 评论 -
SQLite基本了解和使用
SQL语句三种分类:DML、DDL、DCL(数据库控制语言) DDL 数据库操作语言: --创建表: CREATE TABLE IF NOT EXISTS TestTable (field1 TEXT PRIMARY KEY, field2 TEXT NOT NULL, field3 TEXT); --更改表结构,添加一个新人字段(不能直接删除字段) ALTER TABLE Test原创 2014-08-07 11:31:32 · 384 阅读 · 0 评论 -
UIGraphicsBeginImageContext系列知识
UIGraphicsBeginImageContext 创建一个基于位图的上下文(context),并将其设置为当前上下文(context)。方法声明如下:转载 2014-08-08 18:27:52 · 558 阅读 · 0 评论 -
IOS在类别中添加属性
#import #import "Person.h" #import "Person+Add.h" int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, World!");转载 2014-08-08 21:37:21 · 529 阅读 · 1 评论 -
动态设置TextView的高度
- (CGFloat)heightForTextView:(UITextView *)textView OrgSize:(CGSize)orgSize{ if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) { //IOS7.0 NSDictionary *dicFont转载 2014-08-06 15:42:13 · 649 阅读 · 0 评论 -
MapKit简单使用
MapKit 导入MapKit.framework、CoreLocation.framework 自定义两个类: 一个实现MKAnnotation协议,一般用来存放数据 @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; //必须,而且要在初始化或写set方法赋值 @property (non原创 2014-08-08 13:10:02 · 400 阅读 · 0 评论