自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 iOS响应者链

上面图所示的是iOS响应事件是如何传递的!

2016-09-19 16:12:32 331

原创 AutoLayout

纯代码创建约束如下:- (void)viewDidLoad { [super viewDidLoad]; //OC专门为开发者封装了一个类NSLayoutConstraint来帮助开发者描述布局 /** * view1.attr1 = view2.attr2 * multiplier + constant * 视图1.属性1 关系 视图2.属性2 * 缩

2016-09-19 16:09:56 311

原创 UITextField

@interface ViewController ()<UITextFieldDelegate>@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; //创建UITextField UITextField *textField = [[UITextField alloc] in

2016-09-19 16:07:13 269

原创 UIButton

@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; [self creatUIRectButton]; [self creatImageButton]; UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(

2016-09-19 16:04:58 253

原创 iOS开发之UI手势

基础手势- (UIImageView *)imageView{ if (!_imageView) { _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 70, self.view.bounds.size.width-40, self.view.bounds.size.height/2)];

2016-09-19 16:03:24 724

原创 UINavigationBar

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] init]; self.window.frame = [UIScreen mainScreen]

2016-09-19 15:58:31 279

原创 iOS之Touch系统

Touch系统主要有一下几种方法//懒加载- (UIImageView *)imageView{ if (!_imageView) { _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 70, self.view.bounds.size.width-40, self.view.bounds.s

2016-09-19 15:53:37 273

原创 UI基础之画图

part1:demo效果如下图 @implementation DrawView- (id)initWithFrame:(CGRect)frame { if (self= [super initWithFrame:frame]) { } return self;}//覆盖drawRect方法,可以在此自定义绘画和动画- (void)drawRect:

2016-09-19 15:44:48 909

原创 iOS开发基础之传值

iOS开发的界面传值主要有:属性传值、代理传值、代码块传值、单例传值、KVO传值、通知传值。 下面通过代码举例介绍这6种传值方式属性传值假设有A和B两个视图控制器,现在需要从A传值到B,那么首先在B.h文件中声明一个text属性,用来从A传值到B。然后去到A,先导入B.h文件,创建一个B的对象,然后给该对象的text属性赋值,再到B中输出text,会发现text值已从A传到了B,这就是属性传值。/

2016-09-19 15:26:07 262

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除