iOS Question Slow launch

Discussion in 'iOS Questions' started by tufanv, Jun 27, 2015.

  1. tufanv

    tufanv Expert Licensed User

    hello

    My app is ready for submiting for review but i have a question. My app is loding in 4 5 seconds till my white spreen splash comes up and during this period black screen is shown by iphone . Will it be a reason for rejection i dont want to wait 10days and get rejected as usual. If yes what can i do to spped it up.

    Ty
     
  2. Pendrush

    Pendrush Active Member Licensed User

    My (approved) app is starting about 10 seconds, but splash screen in shown right after start, with activity indicator.
     
  3. tufanv

    tufanv Expert Licensed User

    what do you mean with activity indicator ? Also is the color of waiting screen and splash screen is different or the same ? Ty for the answer .
    launching like this : https://drive.google.com/file/d/0B-1_jR6_lx6ZT2VZaENIQXNWVGs/view?usp=sharing ( no splash yet but there will be )
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Make sure to check it in Release mode (Tools - Build Server - Build Release app). It will be faster.
     
  5. tufanv

    tufanv Expert Licensed User

    I found out that the slowness is because of seting searchview items on startup. ( 5103 items take 10 seconds ) . I will try to figure out something else.
     
  6. tufanv

    tufanv Expert Licensed User

    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.
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    I'm not sure that it is the best idea to build such a large index when the program starts. Note that can change SearchView MIN_LIMIT (increase and MAX_LIMIT (decrease) values to make the indexing step quicker.

    You can use CallSubDelayed to let the page load the layout and only then build the index.
     
  8. tufanv

    tufanv Expert Licensed User

    I changed the min value and max value to 2 and 3 instead of 1 and 4 and now it is quicker. But what is the logic of this. What does this value changes ? can you describe shortly pleasE ?
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    SearchView builds an index that maps between short strings and the matching values. This allows it to very quickly find relevant results.

    MIN_LIMIT is probably the one that makes it quicker. It means that it will only start searching for results when there are at least MIN_LIMIT characters. The larger this value
    the smaller the index built.
     
    tufanv likes this.
Loading...