Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-23-2010, 11:41 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 1
Default Delaying A View?

hey i am making an app but i want there to be a delay between when i push the button and the next view.

i have a ui button linking to a new view and i want to put a delay so when i push the button it will take a couple seconds before going to the view?

can anyone help please i really need help?

thank you
jazzandmotz08 is offline   Reply With Quote
Old 02-23-2010, 12:21 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,557
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default

can you post the code where you respond to the button press and push the new view? Then we can go from there.
smithdale87 is online now   Reply With Quote
Old 02-23-2010, 12:36 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 12
Default

Quote:
Originally Posted by jazzandmotz08 View Post
hey i am making an app but i want there to be a delay between when i push the button and the next view.

i have a ui button linking to a new view and i want to put a delay so when i push the button it will take a couple seconds before going to the view?

can anyone help please i really need help?

thank you
[self performSelector:@selector(theNextView) withObject:nil delay:SECONDS];
Was typed freestyle so just type [self per and the rest will show up
johnlikesit is offline   Reply With Quote
Old 02-23-2010, 12:53 PM   #4 (permalink)
Obj-C Learner
 
Join Date: Apr 2009
Location: Manchester, UK
Posts: 1,030
Send a message via MSN to ZunePod Send a message via Yahoo to ZunePod
Default

Why have a delay, it makes the app look slow.
__________________
Will code for food
ZunePod is offline   Reply With Quote
Reply

Bookmarks

Tags
apps, delay, iphone, making, uibutton

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 269
22 members and 247 guests
@sandris, AdamL, ADY, Dani77, diyora, FAED, fredidf, F_Bryant, GHuebner, HDshot, headkaze, mer10, Oral B, prchn4christ, Rudy, smithdale87, stekki, tgjorgoski, Thompson22, Touchmint, twerner, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,752
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:00 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0