2015年9月2日

UIWebView

摘要: UIWebView *webView;nsstring *urlString;Nsurl *url;NSRequest *request;[webView loadRequst];[self.view addSubview:webView];参考案例:http://sourcefreeze.com/... 阅读全文

posted @ 2015-09-02 10:54 puppyb2m 阅读(77) 评论(0) 推荐(0) 编辑

MapView 百度地图 (锁定到以当前经纬度为中心点的显示区域和合适的显示范围 )

摘要: //传入经纬度,将baiduMapView 锁定到以当前经纬度为中心点的显示区域和合适的显示范围- (void)setMapRegionWithCoordinate:(CLLocationCoordinate2D)coordinate{ BMKCoordinateRegion region;if(!... 阅读全文

posted @ 2015-09-02 10:50 puppyb2m 阅读(935) 评论(0) 推荐(0) 编辑

2015年8月25日

UINavigationController

摘要: 1.如何在Navigation上添加按钮 (如添加一个叉) UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemStop target:self... 阅读全文

posted @ 2015-08-25 23:13 puppyb2m 阅读(86) 评论(0) 推荐(0) 编辑

2015年8月4日

Index

摘要: 1.http://www.cnblogs.com/puppyb2m/p/4702912.htmldispatch, 多线程, NSArray 阅读全文

posted @ 2015-08-04 20:30 puppyb2m 阅读(77) 评论(0) 推荐(0) 编辑

IOS 面试题总结

摘要: 4.3.数据持久化(ToDo:写程序)http://blog.csdn.net/nono_love_lilith/article/details/7539659 -属性列表 -对象归档 -数据库SQLite3 -CoreData2.多线程 ①NSThread ②NSOperation ③GC... 阅读全文

posted @ 2015-08-04 19:14 puppyb2m 阅读(169) 评论(0) 推荐(0) 编辑

2015年6月13日

CGRect

摘要: // 1CGRectInsetIf you need to create a rectangle that is either larger or smaller than an existing rectangle, centered on the same point, try CGRectIn... 阅读全文

posted @ 2015-06-13 20:05 puppyb2m 阅读(121) 评论(0) 推荐(0) 编辑

2015年5月29日

25/05/2015

摘要: // 1 UIButton -> clicked[_baseButton addTarget:self action:@selector(toggleStack:) forControlEvents:UIControlEventTouchUpInside];// 2 保证UIView 在屏幕中间[s... 阅读全文

posted @ 2015-05-29 19:21 puppyb2m 阅读(136) 评论(0) 推荐(0) 编辑

2015年5月17日

NSLayoutConstraint (对UI加约束)

摘要: 效果-如何达到让控件永远保持在中间的位置(例如下图)实现方法-这里要使用到NSLayoutConstraint对UI进行约束1 新建一个UISegmentedControl1 UISegmentedControl *segmentedControll = [[UISegmentedContr... 阅读全文

posted @ 2015-05-17 18:06 puppyb2m 阅读(155) 评论(0) 推荐(0) 编辑

2015年5月6日

06/05/2015

摘要: // 1The Observer Pattern// 2 把照片写入本地 / 删除// 3lastPathComponent- 取得一个URL地址中最后一个“/”后面的值“/tmp/scratch.tiff”“scratch.tiff”“/tmp/scratch”“scratch”“/tmp/”“t... 阅读全文

posted @ 2015-05-06 13:10 puppyb2m 阅读(93) 评论(0) 推荐(0) 编辑

2015年5月5日

04/05/2015

摘要: // 1 获得点击的位置的点(point)- CGPoint location = [recognizer locationInView:recognizer.view];// 2 判断点击的是哪个view(点击的点是否在该view中)- if(CGRectContainsPoint(, ); /... 阅读全文

posted @ 2015-05-05 15:23 puppyb2m 阅读(98) 评论(0) 推荐(0) 编辑

导航