![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码碎片
MM小木木
一个在菜鸟路上越走越菜的girl
展开
-
iOS开发:修改textfield的placeholder字体和颜色
[textfield setValue:[UIColor greenColor] forKeyPath:@"_placeholderLabel.textColor"]; [textfield setValue:[UIFont boldSystemFontOfSize:15] forKeyPath:@"_placeholderLabel.font"];原创 2017-03-16 17:16:07 · 364 阅读 · 0 评论 -
判断viewController是否被push,返回上一页dismiss还是pop
NSArray *viewcontrollers = self.navigationController.viewControllers; if (viewcontrollers.count > 1) { if ([viewcontrollers objectAtIndex:viewcontrollers.原创 2017-03-16 16:59:15 · 2158 阅读 · 0 评论 -
iOS :navigationbar隐藏之后手动加侧滑返回
//显示navigationbar- (void)viewWillAppear:(BOOL)animated{ [self.navigationController setNavigationBarHidden: YES];//隐藏navigationbar-(void)viewWillDisappear:(BOOL)animated{ [self.naviga原创 2017-03-16 17:29:06 · 917 阅读 · 0 评论 -
UITextView添加placeholderLabel
UITextView没有placeholder需要自己手动添加原创 2018-03-01 11:49:21 · 197 阅读 · 0 评论