Re: Will this get my iOS app rejected???
Re: Will this get my iOS app rejected???
- Subject: Re: Will this get my iOS app rejected???
- From: Steve Christensen <email@hidden>
- Date: Fri, 27 Sep 2013 06:59:07 -0700
I just looked at some UITextFields with placeholder text, both on a device and in the simulator, and it was dim but readable.
If you're hot to change the look then I don't recommend using -setValue:forKeyPath:. I don't know that it will get your app rejected but at the very least it's a fragile solution since you're depending on the naming of private ivars. (And they're especially private since they're not even listed in the header file.) A more maintainable solution would be to subclass UITextField and override -drawPlaceholderInRect:.
On Sep 27, 2013, at 4:43 AM, Dave <email@hidden> wrote:
> Hi,
>
> Has anyone else noticed that Placeholder text in UITextFields's is very dim in iOS7? It looks ok in iOS 6, but in 7 it can hardly be seen?
>
> I found this hack:
>
> [self.pNameTextField setValue:[UIColor blackColor] forKeyPath:@"_placeholderLabel.textColor"];
>
> Which seems to work, but it is still washed out looking, but it should do?
>
> is there a better way of doing this then the above code? Or better still am I missing something that makes Placeholder or UITextField's different in iOS 7?
>
> Thanks a lot
>
> All the Best
> Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden