2014年4月2日

iOS 修改textholder的颜色

摘要: UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(10, 50, 320, 50)]; textField.placeholder = @"填写订单"; if ([textField respondsToSelector:@selector(setAttributedPlaceholder:)]) { UIColor *color = [UIColor redColor]; textField.attributedPlaceholder = [[NSAttribut... 阅读全文

posted @ 2014-04-02 20:57 Hai_阔天空 阅读(363) 评论(0) 推荐(0)

iOS 7.1 UITapGestureRecognizer 不好用的解决办法

摘要: UITapGestureRecognizer *tap3 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(onSecondNavClick:)]; [field3 addGestureRecognizer:tap3]; tap3.delegate = self;-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:... 阅读全文

posted @ 2014-04-02 17:23 Hai_阔天空 阅读(445) 评论(0) 推荐(0)

导航