摘要: 在iOS 5.0及以后,iOS为UIViewController类添加了新的属性和方法: 1 2 3 4 5 6 @property(nonatomic,readonly) NSArray *childViewControllers - (void)addChildViewController:(U 阅读全文
posted @ 2017-03-01 17:29 玻色-爱因斯坦凝聚态 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 设置圆角 假设现在圆角视图非常多(比如在 UICollectionView 中),那么如何为视图高效的添加圆角呢?网上的教程大多没有说全,因为这个事要分两种情况考虑。为普通的 UIView 设置圆角,和为 UIImageView 设置圆角的原理截然不同。 有一种做法是这样的,这种写法试图实现 cor 阅读全文
posted @ 2017-02-15 19:32 玻色-爱因斯坦凝聚态 阅读(706) 评论(0) 推荐(0) 编辑
摘要: #import <UIKit/UIKit.h> #import "UIView+SDExtension.h" @interface CookButton : UIButton @end #import "CookButton.h" @implementation CookButton - (inst 阅读全文
posted @ 2017-02-14 22:01 玻色-爱因斯坦凝聚态 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #import <UIKit/UIKit.h> @interface ProgressHUD : UIView + (void)show; + (void)dismiss; + (void)dismissWithDelay:(NSTimeInterval)delay; @end #import "P 阅读全文
posted @ 2017-02-10 22:15 玻色-爱因斯坦凝聚态 阅读(215) 评论(0) 推荐(0) 编辑