by the way in android when i write n first line of sub progressdialogoshow and than the things that take time and at last line progressdiaolog hide , it shows the dialog then loads the items while progressbar is spinning and at th end when loading finishes diaolog dissapears. but in ios it does everything at the same time. I mean after the load completes it shows the progressdiaolog screen sor a milisecond and than hides it. but in fact it must first show the dialog than load things and at the end it must dissapear.