
UIView
zani515
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Pop a view animation similar to the presentation of UIAlertView
float pulsesteps[3] = { 0.2, 1/15., 1/7.5 }; - (void) pulse { self.transform = CGAffineTransformMakeScale(0.6, 0.6); [UIView beginAnimations:nil context:nil]; [UIView setAnimationCurve:UIV...原创 2011-08-16 13:47:29 · 91 阅读 · 0 评论 -
UIView的[convertRect: toView:]方法使用
CGRect rr = [cell convertRect:cell.jingduBtn.frame toView:self.view]; 意思是:把UITableViewCell的subview(jingduBtn)的frame convert 到 controller的View中, 这里的controller view 包含一个UITableView, UITableView...原创 2011-06-02 17:26:50 · 317 阅读 · 0 评论 -
UIView annimatio重复动画的代码
[UIView beginAnimations:@"testAnimation" context:NULL]; [UIView setAnimationDuration:8.8f]; [UIView setAnimationCurve:UIViewAnimationCurveLinear]; [UIView setAnimationDelegate:self]; [...原创 2011-06-22 11:02:20 · 279 阅读 · 0 评论 -
Create rounded UIViews with shadow
[roundedView setBackgroundColor:[UIColor blackColor]]; [[roundedView layer] setCornerRadius:8]; [[roundedView layer] setMasksToBounds:NO]; [[roundedView layer] setShadowColor:[UIColor bla...原创 2011-10-22 21:46:44 · 92 阅读 · 0 评论 -
UIView 中的控件事件穿透 Passthrough 的实现
http://unmi.cc/uiview-event-passthrough原创 2012-10-16 10:31:36 · 123 阅读 · 0 评论 -
用UIBezierPath给view添加阴影
bgForListView.layer.shadowOffset = CGSizeZero; bgForListView.layer.shadowRadius = 10.0f; bgForListView.layer.shadowOpacity = 1.0f; bgForListView.layer.shadowPath ...原创 2012-12-17 10:55:05 · 1050 阅读 · 0 评论 -
方便设置view的frame
Use view.x = 15; view.width = 167; instead of CGRect newFrame = view.frame; newFrame.origin.x = 15; newFrame.size.width = 167; view.frame = newFrame;原创 2013-06-04 08:25:59 · 163 阅读 · 0 评论