摘要: 参考:http://blog.sina.com.cn/s/blog_621403ef0100yt8v.html 阅读全文
posted @ 2014-05-12 13:22 cloudjhony 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.csdn.net/bsplover/article/details/7977944 阅读全文
posted @ 2014-05-11 22:14 cloudjhony 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.csdn.net/linqir/article/details/8588835 阅读全文
posted @ 2014-05-05 16:16 cloudjhony 阅读(104) 评论(0) 推荐(0) 编辑
摘要: awakeFromNib 当.nib文件被加载的时候,会发送一个awakeFromNib的消息到.nib文件中的每个对象,每个对象都可以定义自己的 awakeFromNib函数来响应这个消息,执行一些必要的操作。也就是说通过nib文件创建view对象是执行awakeFromNib 。viewDidL... 阅读全文
posted @ 2014-05-05 09:05 cloudjhony 阅读(272) 评论(0) 推荐(0) 编辑
摘要: // 设置 tableView整体的圆角设置 // /// 设置圆角// v_tableview.layer.cornerRadius = 7;// v_tableview.layer.masksToBounds = YES;// /// 设置边框// v_tableview.layer.bord... 阅读全文
posted @ 2014-04-30 11:14 cloudjhony 阅读(6425) 评论(0) 推荐(0) 编辑
摘要: IOS中UIButton 的内容,标题,背景在button容器的相对位子的设置UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];//button的类型 button.frame = CGRectMake(100, 100,... 阅读全文
posted @ 2014-04-30 10:38 cloudjhony 阅读(655) 评论(0) 推荐(0) 编辑
摘要: //要实现UIWebViewDelegate代理@interface TestViewController : UIViewController{ UIWebView *protWebView;}@property (retain, nonatomic) IBOutletUIWebView *pr... 阅读全文
posted @ 2014-04-30 10:33 cloudjhony 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 参考网址:http://www.cnblogs.com/zhw511006/archive/2011/10/19/2218194.html http://blog.163.com/wkyuyang_001/blog/static/10802122820133190545227/ 阅读全文
posted @ 2014-04-29 21:18 cloudjhony 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 在接手别人的项目时发现一个问题:-Prefix.pch 预编译文件不能使用。1.首先借鉴的网站:http://blog.csdn.net/duxinfeng2010/article/details/8287550targets---build settings---prefix Header 修改为... 阅读全文
posted @ 2014-04-29 09:50 cloudjhony 阅读(915) 评论(0) 推荐(0) 编辑
摘要: IOS 通过ip地址获取当前城市的编号 //解析网址通过ip 获取城市天气代码 NSURL *url = [NSURL URLWithString:@"http://61.4.185.48:81/g/"]; // 定义一个NSError对象,用于捕获错误信息 NSError *error; NSS... 阅读全文
posted @ 2014-04-27 20:35 cloudjhony 阅读(1357) 评论(0) 推荐(0) 编辑