05 2015 档案

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

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

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

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

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 阅读(95) 评论(0) 推荐(0)

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

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

导航