Re: [iPhone] Action sheet on ViewDidLoad
Re: [iPhone] Action sheet on ViewDidLoad
- Subject: Re: [iPhone] Action sheet on ViewDidLoad
- From: Sven <email@hidden>
- Date: Fri, 7 Aug 2009 13:53:39 +0000 (UTC)
On Fri, 7 Aug 2009, Luke the Hiesterman wrote:
My advise is just to use viewDidAppear: - the problem is probably rooted in
showing an action sheet on a view that isn't yet onscreen - when it gets
displayed, adjustments might have to be made which push it off the bottom of
the screen.
Luke
On Aug 6, 2009, at 10:54 PM, Sven wrote:
Hello,
I have a view with a toolbar in which I show an action sheet in
viewDidLoad. When the view loads however the action sheet sits slightly too
high, revealing about 20-30 pixels of the toolbar at the bottom.
If I show the action sheet from a button press in the same view however,
it's perfectly aligned to the bottom.
Is showing an actionsheet in viewDidLoad a bit too premature for everything
to align correctly or is it something else that I'm doing wrong?
This happens both on the simulator and device.
thanks for the reply. I forgot to say that I also tried to do this in
viewDidLoad for exactly that reason. Same result wich surprised me. So far
the only way I managed to get it to work correctly is to show the action
sheet via a button press in that view.
Perhaps I will have another look at the code to make sure I wasn't
imagining things.
./Sven
_______________________________________________
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