码迷,mamicode.com
首页 > 其他好文 > 详细

软件的动与静

时间:2018-01-18 18:28:27      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:rect   ima   ict   controls   blog   control   initial   ons   log   

动:运行时、修改、结构;

静:编译时;

 

 [self.KVOController observe:vc keyPath:@"self.view" options:NSKeyValueObservingOptionInitial|NSKeyValueObservingOptionNew block:^(id observer, id object, NSDictionary *change) {

                        

                        UIButton *bt = [UIButton new];

                        [bt setImage:[UIImage imageNamed:@"navi_close"] forState:UIControlStateNormal];

                        bt.frame = CGRectMake(15, 25, 40, 40);

                        //bt.backgroundColor = [UIColor redColor];

                        [vc.view addSubview:bt];

                        [bt setTapBlock:^(UITapGestureRecognizer *gesture) {

                            [vc dismissViewControllerAnimated:YES completion:nil];

                            self.resettingGesPwd = YES;

                        }];

                        

                    }

                     ];

软件的动与静

标签:rect   ima   ict   controls   blog   control   initial   ons   log   

原文地址:https://www.cnblogs.com/feng9exe/p/8311618.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!