摘要:
/* * @DO 插入电话号码 * @param phoen 电话号码相关信息 * @return 主键(电话号码) */- (int) insertPhone:(Phone *) phone{ NSString *sql = [NSString stringWithFormat: ... 阅读全文
随笔档案-2013年10月
ios判断是否有中文
2013-10-24 09:38 by 甘超波, 4368 阅读, 收藏, 编辑
摘要:
//判断是否有中文-(BOOL)IsChinese:(NSString *)str { for(int i=0; i 0x4e00 && a 有中文"); } 阅读全文
ios 7新特性
2013-10-24 08:42 by 甘超波, 548 阅读, 收藏, 编辑
摘要:
1:解决ios7.0中视图控制器中视图坐标布局问题 if ([[[UIDevice currentDevice] systemVersion] floatValue]>=7.0) { self.edgesForExtendedLayout=UIRectEdgeNone;//ios... 阅读全文
NSDictionary的分类
2013-10-16 09:10 by 甘超波, 433 阅读, 收藏, 编辑
摘要:
@implementation NSDictionary (extra)//根据key值的到字典中的object- (id)getObjectByKey:(NSString*)key { NSArray *array = [key componentsSeparatedByString:@... 阅读全文
asiHttpRequst 超时代码判断
2013-10-15 14:25 by 甘超波, 592 阅读, 收藏, 编辑
摘要:
- (void)requestFailed:(ASIHTTPRequest *)request{ NSDictionary *userInfo = [request userInfo]; id delegate = [userInfo objectForKey:@"targe... 阅读全文
ios中layoutsubview何时被调用
2013-10-10 09:48 by 甘超波, 3518 阅读, 收藏, 编辑
摘要:
layoutsubview和viewDidlayoutsubview(控制器)被调用的集中情况 一:当view的frame或bounds发生改变 1:直接改view的frame或bounds 会调用view中layoutsubview 2:当屏幕旋转的时候,视图控制器中根view发生变化,会调用视图... 阅读全文
ios中tableview的移动添加删除
2013-10-02 10:31 by 甘超波, 25871 阅读, 收藏, 编辑
摘要:
//// MJViewController.m// UITableView-编辑模式//// Created by mj on 13-4-11.// Copyright (c) 2013年 itcast. All rights reserved.//#import "MJViewCont... 阅读全文