Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Button turns white after pressing. ( iOS ) Back to normal after refresh

Tags:

xcode

ios

Using Xcode 4.3.3

After pushing button in App to dial out, it switches to the phone to dial out. Upon returning to the app the dial out button is white out, goes back to normal after refresh.

The same thing happens when another button is pushed for email or text. It appears that it only happens when leaving the current app to do something outside of it.

like image 230
Transaction Avatar asked Dec 12 '25 20:12

Transaction


1 Answers

What about using

button.selected = NO

If your still not satisfied you might want to add it to the

- (void)applicationWillResignActive:(UIApplication *)application

in the app delegate

to create a pointer to the button create

@property (nonatomic, assign) IBOutlet UIButton * button

in the .m add

@synthersize button;

Then in Interface builder you need to link up the IBOutlet with the button by holding control and dragging from the ViewContrtoller Icon

like image 67
geminiCoder Avatar answered Dec 14 '25 12:12

geminiCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!