In general if you use private API will get your app rejected or pulled when 
found as it is clearly forbidden. 
Don't try to use it if you know it is such. 
Find another way. 
File a bug requesting functionality. 

Sent from my iPhone

> On 2013/09/27, at 22:59, Steve Christensen <puns...@mac.com> wrote:
> 
> 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 <d...@looktowindward.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to