uitableviewcontroller

UITableViewController on UISplitView. Why does drill down stay on 1st table? (using monotouch)

I'm using the UISplitView in my app with the left side (popover in portrait) utilizing a UITableViewController. I want to reuse the master table controller so when I want to drill down I create a new instance of the object and push that. However, when I set the data source, all the data goes into the 1st instance table (hope that makes s...

CoreData and UITableViewController Problem

Hi I have a app that works with Core Data. The data has a field with a date and I would like to show every entry of a month in a seperate section. How do I actually get the data ? I use a NSFetchedResultsController to get the data and use this : - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section ...

Problem with CoreData and accessing relationships : request for member in something not a structure or union

Hi I have a question regarding a rather advanced DataModel which I would like to use with CoreData. Before I get into details about what I did so far, I will describe what I want to do. I have a List of Hotel Guests that stay in one Room and have Preferences. Once ready the user should select a guest and see the data and should also b...

iPhone: Add background button to view when UITableView has no cells

I have a UITableViewController, when there is no data to populate the UITableView, I want to add a button, which uses an image. So, rather than the user seeing a tableview with no records, they will see an image that says, "No records have been added, Tap to add one", then they click and we create a new one. I assumed I would just hide ...

iPhone: Fetched Results Controller, don't use sections in UITableView

I am using a fetched results controller, which, it seems wants to set up using sections in my UITableView. Well, in this case, I don't want to use sections. Which, is easy enough to set the value for numberOfSectionsInTableView: to 1. But, now I am not sure how to get the numberOfRowsInSection: to return all of the cells into one sect...

iPhone UI: No edit button for UITableView, bad idea?

I have a UITableViewController which lets the user drill down into different records. On the second level/view, the user can add and edit new records. But, I am not sure what to do, since the back button is on the top left, and I need to put the "Add" button on the top right, so there is no room (keeping to HIG) for the edit button, wh...

ipad: UINavigationController Inside a ModalView not pushing views

I have a UINavigationController with a UIViewcontroller containing a tableview that is being presented as a UIModalPresentationFormSheet on the ipad. Which works fine until I try to push another view on top of it. Nothing happens anyone else have this issue? It also works perfectly on the iphone. and the didselectrowatindexpath is not a...

Auto height for label or textview within table view cell

Hi Folks, I have a problem in an iPhone application. Application has a table view controller with custom table view cells. Each cell has a Label (please correct me if I need to use text view etc). I am getting text dynamically from a web service call and I don't know how long text gonna be. Now problem is that I want to adjust the tab...

How to draw or put a text on empty an UITableViewController ?

Hi I have a app that starts with a empty UITableViewController, which is pretty .. well, emtpy. Now I was wondering if I could hint the user by painting something else on the view, like pointing an arrow to the plus button and say something like "press here to add something new" I'll guess I have to do this in the viewDidLoad method, w...

Table View scroll when text field begin editing iphone

Hi, I have table view controller in iphone application. Table view has two sections. First section has two rows and second section has one row. Second section has a custom table view cell. Second section has a textfield which hides when text field begin editing and keyboard pops up. I want this table view to scroll when keyboard pops ...

UITableView style set to "Grouped", but program uses "Plain" on iPhone

I have created UITableViewController based class with XIB. In XIB I have changed style to "Grouped". Unfortunately, when I build the application, the table turns out to by "Plain". What might be a problem? I have tried "Cleaning all targets". No success. EDIT: Problem solved. As you know you have to add the view to the parent contr...

Does it make sense to use a NSFetchedResultsController without an UITableViewController? How are they related?

I mean... could I also just create a plain old UIViewController and then set up a UITableView myself, plus an NSFetchedResultsController? How much do UITableViewController and NSFetchedResultsController interact with eachother? As far as I see it, UITableViewController is NOT by default already adopting the NSFetchedResultsControllerDel...

How do I create custom subviews from a UINavigationController in xcode?

I am definitely the NOOB here, so let me pre-apologogize for asking how to write this application. In a nutshell, this is what I am trying to do. I will have a main View Controller. There will be 3 buttons. 1 for information, 1 for Food Menu items (TableView), and 1 for Common greetings. I am stuck on creating a tableview that will h...

Enable editing does not call didSelectRowAtIndexPath ??

Hi I have a UITableViewController where the user should be able to edit the items. In order to enable editing i use this : self.navigationItem.rightBarButtonItem = self.editButtonItem; And for everyone, how does not know where self.editButtonItem comes from, it is predefined by the SDK. So, now when I press on any item, this method...

Pushing to a UITable inside a UIView from a UITableview

I can firgure out how to push a UIView from a Tableview and have the "child" details appear. Here is the view I'm trying to load: Here is the code that checks for children and either pushes a itemDetail.xib or an additional UITable, I want to use the above .xib but load the correct contents "tableDataSource" into the UItable: - (voi...

Problems with UINavigationController inside of UITabBarController, viewWillAppear not called

As an overview, I'm having issues with a UINavigationController inside of a UITabBarController calling viewWillAppear whenever a view is popped from the stack. From the delegate, a UITabBarController is made programmatically: // Create views for Tab Bar UINavigationController *view1 = [[UINavigationController alloc] initWithRoo...

How to use an background image for the section header in the UITableViewController ?

HI I have a UITableViewController where I also use the section header. Now is there any chance to use an image as background for the section header ? Thanks ...

setting target for disclosure button on subclassed UITableViewCell

I've created a subclass of UITableViewCell to create some custom appearance and UI functionality ('swipe to reveal delete button'). Some of the cells are disclosure/detail disclosure type, and have a UIButtonTypeDetailDisclosure etc added manually. I cannot use the table view controllers' UITableViewCellAccessory for row at index path m...

UITableViewCell data not showing up *initially* in UISplitViewController

I have a generic UISplitViewController (UITableView in the RootViewController and other stuff in the detail view) I have modified UITableViewCells in 2 ways: The rows have a height of 55 The UITableViewCells contain both a UIImage and UILabel There are 50 rows total PROBLEM: When I launch the app, the first 13 rows (the ones that ...

How to refresh a UITableViewController or NSFetchedResultsController ?

Hi I have a little problem with my UITableViewController or NSFetchedResultsController. I am not sure which is the problem soure but I guess its the UITableViewController. As I said I use a NSFetchedResultsController to fill my data into a UITableViewController. The data is sorted by date and is also displayed in sections by date-year...