|Dec 15, 2008, 11:43 AM||#1|
Problem With Replacing a View
I am having an application where in I fetch some data from a remote web server. Since the data fetching will take some time, when the ViewController loads, in its loadView method i am showing a splash screen with a progress bar on it. Now once this is loaded, in the viewDidAppear method of my view controller i am creating another thread which loads the data from webserver and the thread calls back one method in my view controller with the data to be loaded. All these things are happening fine. Now the problem is once i get the data back i want to create a new view and replace my welcome screen view with the newly created one. When i am creating the new view which is a subclass of UIView it calls the init method but the drawrect method is not getting called. Is there any restriction that the view can be replaced only when some event occur? Please suggest..
Thanks in advance......
|Dec 15, 2008, 12:20 PM||#2|
Solved that issue but have another....
The problem is solved... It was bcos the second thread was taking the control and my main thread was not listening at all I think. I removed the second thread and used NSURLConnection to load the data. But if we are using multithreading how do we get the control back in the main thread???
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|A problem during replacing the battery of iphone 4s !||Ultraman3003||iPhone||3||Jan 11, 2014 04:53 PM|
|A1342 Problem after replacing logic board||nnj4||MacBook||3||Dec 15, 2013 06:28 AM|
|Replacing Hard Drive, Running into Interesting Problem||fivetoadsloth||MacBook Pro||5||May 14, 2013 06:42 AM|
|IPhone 4S music problem even after replacing handset||Caressamba||iPhone Tips, Help and Troubleshooting||0||Dec 12, 2012 12:07 PM|
|Reusing Cells in Table View Problem||newtoiphonesdk||iPhone/iPad Programming||6||Jun 14, 2012 12:16 PM|
All times are GMT -5. The time now is 08:21 AM.