Correct. We have a RADAR and a test project showing this same problem. 

The problem occurs only on iOS 7.1 and only when using the 7.1 SDK. My guess is 
that its an optimization gone bad. I’ve re-read the docs multiple times and 

1) I think you are correct. 
2) The workaround I use is ugly - I just loop through my buttons and set their 
selected and normal text to be the same.
3) Because iOS checks against what SDK you built against and uses different 
behaviors depending.

On Mar 20, 2014, at 1:19 PM, David Brittain <websi...@paperetto.com> wrote:

> I am seeing an issue in our app where setTitle:forState: is not
> working when a UIButton is in the selected state (the same happens
> with setImage:forState:). Specifically I am calling:

…

> So, a few questions:
> - am I correct that I should not have to call  [self.button
> setTitle:@"New name" forState:UIControlStateSelected];
> - any suggestions for workarounds?
> - any ideas how this could happen when building with xcode 5.1 but not
> xcode 5.0?
> 

Alex Kac - President and Founder
Web Information Solutions, Inc.

"Forgiveness is not an occasional act: it is a permanent attitude." 
-- Dr. Martin Luther King





_______________________________________________

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