iOS Question iPhone vs iPad app testing

Discussion in 'iOS Questions' started by Indy, Jun 26, 2015.

  1. Indy

    Indy Active Member Licensed User

    Hi All,

    I'm doing a conversion of an Android app over to iOS. I started off using an iPone 5s to do all the testing. However, I got to a stage where I though I'd better test it out on an iPad. Unfortunately, things didn't work out well. I thought that testing between iPhone and an iPad would be just seeing the app running with more screen real-estate. I was wrong. I have found some quirks and issues between the two which I'm not sure how to address.

    Has anyone here been successful in doing what I'm trying? I'd be interested to find out. My two devices are as follows;

    iPhone 5s iOS 8.3
    iPad 2 iOS 8.1

    Amazing thing is my app which I have an Android version of works 100% the same on my Galaxy S (yes S) and Cube Talk 9X 9.7" tablet.

    Here's a function that I use to populate a Scrollview with image thumbnails of pics taken by the camera. Works perfectly on my iPhone but not iPad. Can anyone spot any problems?

    Dim FL As List
    Dim i As Int = 0
    Dim ivpreviousleft As Int = 5
    Dim picdimensions As Int = 0
       FL = 
    File.ListFiles(Main.ImagesDir) 'list images taken for case
    For Each filename In FL
    Dim iv As ImageView 'create an ImageView for each bitmap
         picdimensions = ScrollView1.ContentHeight - 
         iv.Tag = filename   
         iv.Bitmap = 
    LoadBitmap(Main.ImagesDir, filename)
         ScrollView1.Panel.AddView(iv, ivpreviousleft, 
    2, picdimensions, picdimensions)
         iv.ContentMode = iv.MODE_FIT
    1Colors.Red, 4)
         ivpreviousleft = (iv.Left + iv.Width) + 
         i = i + 
    Log(iv.Left & ":" & iv.Width)
  2. Erel

    Erel Administrator Staff Member Licensed User

    Can you post a screenshot of the layout on the iPhone and iPad?
  3. Indy

    Indy Active Member Licensed User

    Hi Erel,

    Here's a screen shot from the iPhone and iPad version of the page in question; What you'll see is the portion at the bottom which displays thumbnails of images captured by the camera. On the iPhone everything is ok but, iPad seems to not display the 2nd image and also the one which is displayed seems to be cut off from the right. You can tell this by looking carefully at the imageview border is missing. The code I posted is what is being used on both. As I also mentioned in my original post, the android versions are both perfect - no difference between the phone and tablet.


    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    Maybe ScrollView.ContentWidth is wrong. If you are unable to solve it then please upload the project or a smaller project with only the layout.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice