So I am using subview which contains a label, activity indicator and uiimageview. I have it in a subview and i hide it by default when loading I pop up the subview. However, the subview doesn’t unhide itself until AFTER I complete what i need to complete meaning it shows up for about .01 seconds instead of durring the time I want it to
I’ve tried doing somehting like this.
do{
loadingSubview.hidden=false;
}while(loadingSubview.hidden);
to make Sure the property is set before moving on however it yields the same results is there something I am doing wrong?
You need to exit your current method(s) back to the run loop for any UI updates to take place.
Move on to do the other stuff after this UI update, later in another NSTimer task or other delayed operation (just a couple dozen milliseconds will do). Don’t wait inside a method.