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 10-20-2011, 03:41 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 40
chings228 is on a distinguished road
Default how do i know the view did finish loading

i have a app want to load thing from server after the view stop loading

how can i know "stop loading" , then i can start load data from server?

thanks in advance.
chings228 is offline   Reply With Quote
Old 10-20-2011, 03:46 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 1,106
Meredi86 is on a distinguished road
Default

i think it would be the viewDidLoad method of a view.

Makes sense as the method is written in the past tense. Alternatively you could just put a 1 second timer on the server call method
Meredi86 is offline   Reply With Quote
Old 10-20-2011, 04:14 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 40
chings228 is on a distinguished road
Default

i add a NSLog at the end of viewdidload

but i found that that NSLog appear very early as still many code running at the same view and the page not show yet .




Quote:
Originally Posted by Meredi86 View Post
i think it would be the viewDidLoad method of a view.

Makes sense as the method is written in the past tense. Alternatively you could just put a 1 second timer on the server call method
chings228 is offline   Reply With Quote
Old 10-20-2011, 05:48 AM   #4 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: Ypsilanti, Michigan
Age: 63
Posts: 1,549
RLScott is on a distinguished road
Default

Quote:
Originally Posted by chings228 View Post
i add a NSLog at the end of viewdidload

but i found that that NSLog appear very early as still many code running at the same view and the page not show yet .
Exactly what code did you find that was "still running" after the viewDidLoad? (what method)
RLScott is offline   Reply With Quote
Old 10-20-2011, 11:39 AM   #5 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Maybe you're looking for viewDidAppear
baja_yu is offline   Reply With Quote
Old 10-20-2011, 10:02 PM   #6 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 40
chings228 is on a distinguished road
Default

thanks .

Quote:
Originally Posted by baja_yu View Post
Maybe you're looking for viewDidAppear
chings228 is offline   Reply With Quote
Reply

Bookmarks

Tags
finish, view, xcode

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: 395
14 members and 381 guests
13dario13, 7twenty7, buggen, EvilElf, glenn_sayers, j.b.rajesh@gmail.com, LunarMoon, morterbaher, n00b, QuantumDoja, sacha1996, Sami Gh, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,673
Threads: 94,122
Posts: 402,906
Top Poster: BrianSlick (7,990)
Welcome to our newest member, morterbaher
Powered by vBadvanced CMPS v3.1.0

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