Scofield Tran
Scofield Tran

Reputation: 840

iOS remove view before applicationWillEnterForeground

I'm developing an app on iOS 7 with a desired feature is that

Can anyone help me to remove it "immediately" as my desire.

Upvotes: 0

Views: 331

Answers (3)

Manuel M.
Manuel M.

Reputation: 4515

Like other says it is really tricky how iOS handles these events. I've been researching and depends on the memory state of the device to do it faster or not. Indeed, in iPhone 4 and 4S may not show the image that you added on applicationWillEnterForeground method.

If I were you I would solve it by adding a smooth fade out animation of that image when the app becomes active again. With [UIView animateWithDuration: animations:] it could be nicely done! :)

If I find out something else I'll answer here!

Upvotes: 1

Andrés Brun
Andrés Brun

Reputation: 185

I don't think that you can do it faster, it depends of device performance. Sorry man.

Upvotes: 1

Antiohia
Antiohia

Reputation: 1232

That is done automatically for all applications, you don't need to do anything in you code.

Upvotes: 1

Related Questions