Fork me on GitHub
摘要: #pragma mark - 手势 总共有五种手势 分别为 Tap点击 Pan拖拽 LongPress长时间按压 Pinch捏合手势 rotation旋转 1. 定义成员变量 UIImageView *_imgView; 定义UIImageView, 响应手势方法时调用 CGPoint origin 阅读全文
posted @ 2016-04-16 13:39 极度恐慌_JG 阅读(445) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - UINavigationController UITabBarController 控制器的切换方式 --> Push / Model UINavigationController 第5点 和 UITabBarController 第4点 有使用说明 一、UINavig 阅读全文
posted @ 2016-04-16 13:10 极度恐慌_JG 阅读(297) 评论(0) 推荐(0) 编辑
摘要: // 通过一个frame来初始化一个UI控件 - (id)initWithFrame:(CGRect)frame; // YES:能够跟用户进行交互 @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEn 阅读全文
posted @ 2016-04-16 11:23 极度恐慌_JG 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #pargma mark - Layer 1. 设置当前视图的背景颜色 self.view.backgroundColor = [UIColor lightGrayColor]; 2. 创建一个视图,并且设置frame UIView *myView = [[UIView alloc]initWith 阅读全文
posted @ 2016-04-16 10:32 极度恐慌_JG 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 1. 从一个视图控制器跳转另一个视图控制器的方式是可以进行设置的 CATransition *animation = [[CATransition alloc]init]; animation.duration = 1; animation.type = @"pageCurl"; //立方体翻滚效果 阅读全文
posted @ 2016-04-16 09:58 极度恐慌_JG 阅读(230) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad { [super viewDidLoad]; scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)]; scrollView.backgroundColor = 阅读全文
posted @ 2016-04-16 09:01 极度恐慌_JG 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1 //UIActivityIndicatorView //小菊花,加载 2 3 #import "ActivityIndicatorVC.h" 4 5 @interface ActivityIndicatorVC (){ 6 UIActivityIndicatorView *_activity ; 阅读全文
posted @ 2016-04-16 08:57 极度恐慌_JG 阅读(335) 评论(0) 推荐(0) 编辑