代码改变世界

ASIHttpRequest请求HTTPS

2013-11-08 14:36 by 甘超波, 5360 阅读, 0 推荐, 收藏, 编辑
摘要:一种方法 ASIHTTPRequest *request = [ASIHTTPRequestrequestWithURL:[NSURLURLWithString:bodyString]]; [request setDelegate:self]; request.timeOutSe... 阅读全文

FMDB

2013-10-30 16:30 by 甘超波, 570 阅读, 0 推荐, 收藏, 编辑
摘要:/* * @DO 插入电话号码 * @param phoen 电话号码相关信息 * @return 主键(电话号码) */- (int) insertPhone:(Phone *) phone{ NSString *sql = [NSString stringWithFormat: ... 阅读全文

ios判断是否有中文

2013-10-24 09:38 by 甘超波, 4364 阅读, 1 推荐, 收藏, 编辑
摘要://判断是否有中文-(BOOL)IsChinese:(NSString *)str { for(int i=0; i 0x4e00 && a 有中文"); } 阅读全文

ios 7新特性

2013-10-24 08:42 by 甘超波, 546 阅读, 0 推荐, 收藏, 编辑
摘要:1:解决ios7.0中视图控制器中视图坐标布局问题 if ([[[UIDevice currentDevice] systemVersion] floatValue]>=7.0) { self.edgesForExtendedLayout=UIRectEdgeNone;//ios... 阅读全文

NSDictionary的分类

2013-10-16 09:10 by 甘超波, 430 阅读, 0 推荐, 收藏, 编辑
摘要:@implementation NSDictionary (extra)//根据key值的到字典中的object- (id)getObjectByKey:(NSString*)key { NSArray *array = [key componentsSeparatedByString:@... 阅读全文

asiHttpRequst 超时代码判断

2013-10-15 14:25 by 甘超波, 588 阅读, 0 推荐, 收藏, 编辑
摘要:- (void)requestFailed:(ASIHTTPRequest *)request{ NSDictionary *userInfo = [request userInfo]; id delegate = [userInfo objectForKey:@"targe... 阅读全文

ios中layoutsubview何时被调用

2013-10-10 09:48 by 甘超波, 3516 阅读, 0 推荐, 收藏, 编辑
摘要:layoutsubview和viewDidlayoutsubview(控制器)被调用的集中情况 一:当view的frame或bounds发生改变 1:直接改view的frame或bounds 会调用view中layoutsubview 2:当屏幕旋转的时候,视图控制器中根view发生变化,会调用视图... 阅读全文

ios中tableview的移动添加删除

2013-10-02 10:31 by 甘超波, 25864 阅读, 3 推荐, 收藏, 编辑
摘要://// MJViewController.m// UITableView-编辑模式//// Created by mj on 13-4-11.// Copyright (c) 2013年 itcast. All rights reserved.//#import "MJViewCont... 阅读全文

ios发布

2013-09-30 17:05 by 甘超波, 325 阅读, 0 推荐, 收藏, 编辑
摘要:https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/2_BeforeYouBegin/BeforeYouBegin.html#//apple_r 阅读全文

新浪博客中放大图片的做法

2013-09-27 17:11 by 甘超波, 471 阅读, 0 推荐, 收藏, 编辑
摘要:在自定义cell中子的UIImageview添加手势,单击手势触发下面的事件 UIImageview _statuImage=[[UIImageView alloc] init]; _statuImage.userInteractionEnabled=YES; ... 阅读全文

ios中coredata

2013-09-25 20:59 by 甘超波, 785 阅读, 1 推荐, 收藏, 编辑
摘要:http://blog.csdn.net/q199109106q/article/details/8563438 //// MJViewController.m// 数据存储5-Core Data//// Created by mj on 13-4-16.// Copyright (c... 阅读全文

uitextview根据内容算高度

2013-09-25 14:23 by 甘超波, 10152 阅读, 1 推荐, 收藏, 编辑
摘要:UITextView根据内容自动改变frame 分类:iOS 2013-03-08 07:27 190人阅读 评论(0) 收藏 举报 注意点: 在textview中计算string占据的高度不能使用[NSStringsizeWithFont:constrainedToSize:],因... 阅读全文

ios用户登录记住密码

2013-09-16 12:48 by 甘超波, 7629 阅读, 1 推荐, 收藏, 编辑
摘要:登录 记录已登录用户步骤,存入偏好设置中存储放入一个数组。具体存储1:存储用户到偏好设置中,其中用户是一个数组 向服务器响应客户端后的一些操作 (如果响应数据成功)其中用户和密码是一一对应的 1.1先从沙盒中偏好设置中读取对应的用户集合 读取用户名: NSMutableArra... 阅读全文

图片异步加载之EGOImageLoading

2013-09-10 15:19 by 甘超波, 297 阅读, 0 推荐, 收藏, 编辑
摘要:下载地址 http://pan.baidu.com/share/link?shareid=2690186349&uk=923776187 引入目录 简单实用 http://blog.csdn.net/ryantang03/article/details/9312783 阅读全文

nsTimer的简单用法

2013-09-10 13:53 by 甘超波, 2727 阅读, 0 推荐, 收藏, 编辑
摘要://用nstimer的用法 一种用法,要手动加入到NsRunLoop中 NSTimer *time= [NSTimer timerWithTimeInterval:3 target:self selector:@selector(NoticeTransation) userInf... 阅读全文

ios中创建自己的框架

2013-09-02 14:21 by 甘超波, 3367 阅读, 1 推荐, 收藏, 编辑
摘要:如果你是IOS的新手,并有.net开发的背景(就像我一样),你可能到处去找,哪里有dll呢? 其实,IOS平台是使用框架而不是dll,框架里面包含公共头文件和二进制文件。很不幸,XCode并不支持你自己去创建框架。 对于一个开发人员,这是个大问题,b/c缺少框架,我们就不得不去创建一个静态库... 阅读全文

Ios中checkBox

2013-08-30 10:35 by 甘超波, 2349 阅读, 0 推荐, 收藏, 编辑
摘要://使用tableview来进行布局checkBox.便于全选,全不选//radiobutton 适合用RadioButton#import @interface CheckView : UIView- (id)initWithFrame:(CGRect)frame Data:(NSArray ... 阅读全文

ios中radiobutton

2013-08-30 08:51 by 甘超波, 4578 阅读, 0 推荐, 收藏, 编辑
摘要:#import @protocol RadioButtonExtDelegate;@interface RadioButtonExt : UIView- (id)initWithFrame:(CGRect)frame data:(NSArray *)data ;@property(nonatom... 阅读全文

ios中 radioButton和DataPIcker,九宫格封装好使用

2013-08-29 17:29 by 甘超波, 1872 阅读, 0 推荐, 收藏, 编辑
摘要:下载地址http://pan.baidu.com/share/link?shareid=2894506499&uk=923776187 引用这几个文件 radiobutton。封装好单选按钮 DataPicker 封装好选择器 jiugongge 九宫格 commonButton 这个是公用的bu... 阅读全文

ios中广告滚动页面(uiscrollview)

2013-08-27 09:36 by 甘超波, 3212 阅读, 0 推荐, 收藏, 编辑
摘要:展示功能 第一步 引入 “EScrollerView.h”,EScrollerView.m"文件 用法 NSArray *imgarr=@[@"1.jpg",@"2.jpg",@"3.jpg"]; NSArray *titlearr=@[@"标题一",@"标题二",@"标题三"]; E... 阅读全文
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页