How to make rows disappear from tableview

Discussion in 'iOS Programming' started by akaash1087, Jun 20, 2012.

  1. akaash1087 macrumors newbie

    Joined:
    Jul 7, 2010
    #1
    Hi
    I am developing a splitview based app for Ipad.It creates a master view and a detail view.My master view is a tableview.Actually I want a certain number of rows in my tableview. When I select that by overriding the appropriate function in DataSource (which is derived from UITableViewSource) I do get those rows in my view.But what I find is that below those rows also there are some rows which are not clickable . The rows that I selected are clickable with currently selected row being shown blue.I dont want these rows that appear below my selected rows.
    When I try to decrease the height of the tableview in Interface builder ,it doesnt reflect when I run the app,in other words the tabelview height remains the same. Same happens with width..

    Any ideas how I could make those rows dissappear ??Many thanks in advance.. Thx Akaash
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    That's the way all tableviews work. You can easily see this in tens of thousands of apps. You can make the table view smaller, probably.

    If your view controller is a subclass of UITableViewController it makes the table view fill the screen. You can only make it smaller by using a subclass of UIViewController and putting your tableview inside another view.
     

Share This Page