2015年12月5日

UILable  /  UITextField  /   UIButton

摘要: // 获取屏幕大小的viewUIView *contentView = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds]; // bound是个矩形 bounds类型是CGRect#pragma mark - UILable知识点... 阅读全文

posted @ 2015-12-05 22:26 wnfight 阅读(187) 评论(0) 推荐(0) 编辑

UIView /  UIView的布局

摘要: //! 一个视图可以有n个子视图,但是一个视图只能有一个父视图struct CGRect { CGPoint origin; CGSize size;};CGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height){ CGRect r... 阅读全文

posted @ 2015-12-05 22:20 wnfight 阅读(351) 评论(0) 推荐(0) 编辑

UIVIew之霓虹灯实现

摘要: //// AppDelegate.m// NiHongPractice//#import "AppDelegate.h"#define kColorValue arc4random_uniform(256) / 255.0#define kScreenWidth [UIScreen mainSc... 阅读全文

posted @ 2015-12-05 22:13 wnfight 阅读(460) 评论(0) 推荐(0) 编辑

UI中的七种手势

摘要: 1 // 2 // GestureRecognizerViewController.m 10 11 #import "GestureRecognizerViewController.h" 12 #import "UIColor+RandomColor.h" 13 @interface Ge... 阅读全文

posted @ 2015-12-05 18:48 wnfight 阅读(1285) 评论(0) 推荐(0) 编辑

导航