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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 05-04-2010, 05:56 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 45
wardyfloyd is on a distinguished road
Default Button Delay

I have a button that i want to pop up on the screen when i run my loadview, however, i want it to pop up after the application has been open for about 5 seconds. How would i do this?
wardyfloyd is offline   Reply With Quote
Old 05-04-2010, 06:26 PM   #2 (permalink)
A Single-Serving Friend
 
Join Date: Mar 2010
Location: Groningen, NL
Posts: 491
Robert Paulson is on a distinguished road
Default

Hi,

you may want to take a look at NSTimer. Instead of making the button appear instantly (i.e. when the view loads), start the timer, set it to 5 seconds (or whatever) and have the button pop up then.

I hope this helps.

Cheers,
Bob
__________________
We are God’s middle children, according to Tyler Durden, with no special place in history and no special attention.

Consider saying thanks by buying my app. :]
Robert Paulson is offline   Reply With Quote
Old 05-04-2010, 07:15 PM   #3 (permalink)
Registered Member
 
rwenderlich's Avatar
 
Join Date: Aug 2009
Posts: 162
rwenderlich is on a distinguished road
Default

Also, you might find the method performSelector:withObject:afterDelay: handy.

NSObject Class Reference
__________________
Check out my iPhone development blog!

Motivate yourself to become an expert with LevelMeUp!

--Ray Wenderlich
rwenderlich is offline   Reply With Quote
Reply

Bookmarks

Tags
button, delay, loadview, 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: 333
17 members and 316 guests
Abidullah, baja_yu, cgokey, Duncan C, Fstuff, gbenna, givensur, guusleijsten, jbro, mdpauley, n00b, newDev, Sami Gh, seokwon lee, SLIC, stanny, Steven.C
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,113
Posts: 402,877
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

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