![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 67 阅读 · 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 · 262 阅读 · 0 评论 -
UIView annimatio重复动画的代码
[UIView beginAnimations:@"testAnimation" context:NULL]; [UIView setAnimationDuration:8.8f]; [UIView setAnimationCurve:UIViewAnimationCurveLinear]; [UIView setAnimationDelegate:self]; [...原创 2011-06-22 11:02:20 · 234 阅读 · 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 · 70 阅读 · 0 评论 -
UIView 中的控件事件穿透 Passthrough 的实现
http://unmi.cc/uiview-event-passthrough原创 2012-10-16 10:31:36 · 103 阅读 · 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 · 1002 阅读 · 0 评论 -
方便设置view的frame
Useview.x = 15;view.width = 167;instead ofCGRect newFrame = view.frame;newFrame.origin.x = 15;newFrame.size.width = 167;view.frame = newFrame;原创 2013-06-04 08:25:59 · 131 阅读 · 0 评论