UITableView + Tab bar

Discussion in 'iOS Development' started by bobby456, Jun 27, 2009.

  1. bobby456

    bobby456 New Member

    Joined:
    Jan 26, 2008
    Messages:
    6
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    Hey everyone!
    I need help for one of my apps (I'm not very experimented in developing for iphone, but I learn quickly).

    I want to make an app with a tab bar that opens my website (in the first tab) and, in the second tab, I want a UITableView that shows the files that are in a directory of the iphone ( /var/mobile/Library/downloads/ ). I also want to play the files that are in /var/mobile/Library/downloads/ (the files are MP4 videos).

    I already made the first tab but I have no idea of how to make the second tab.

    Can someone help me please!
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
  3. bobby456

    bobby456 New Member

    Joined:
    Jan 26, 2008
    Messages:
    6
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    Thanks for the tutorial! I did everything in the tutorial, but now.. how can I display the mp4 files in the tableview? Are my codes fine or it's missing something?

    Files.h
    Files.m
  4. NolesFans

    NolesFans New Member

    Joined:
    Sep 23, 2008
    Messages:
    404
    Likes Received:
    0
    Device:
    iPod touch
    listOfItems = [[NSArray alloc] initWithArray:[[[NSFileManager defaultManager] directoryContentsAtPath

    Please Register or Log in to view images

    "/var/mobile/Library/Downloads/"]
    pathsMatchingExtensions:[NSArray arrayWithObjects

    Please Register or Log in to view images

    "png", @"mp3" , nil]]];
    hmm
  5. bobby456

    bobby456 New Member

    Joined:
    Jan 26, 2008
    Messages:
    6
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    help plz...

Share This Page