uitableview

popViewControllerAnimated doesn't update info iPhone SDK

When I try to pop a view controller, it doesnt update info for the previous view. Example: I have a cell that displays text in a label in View1. When you click on the cell it goes to View2 (for example) When I choose an option in View2, popViewControllerAnimated is used to go back to View1, however, I want the label to now be updated wit...

iphone copy/paste menu not shown in UITableViewCell

I placed a UITextField and a UITextView in a tableviewcell. When tap on text in them, it allows me to enclose a portion of the text with a rectangular popup showing the enclosed text enlarged. I want to either copy or paste over the selected text, but the copy-paste menu never show up whether I single tap, double taps or press and hold. ...

UITableView : crash when adding a section footer view in empty section

Hi everyone, This is the first time I ask a question here, but I have to say this site has been a tremendous help for me over the last couple months (iphone-dev-wise), and I thank you for that. However, I didn't find any solution for this problem I'm having: I have a UITableView with 2 sections, and no rows when the app is launched for ...

UITableView's background color becoming white when section is empty

Hi everyone. Here is the deal: I have a UITableView with 2 sections, and I want to display a "no data" cell when the first section is empty, so that the 2 section headers are not stuck together (cause it looks weird). It works great (even though I had trouble making it work at first, see this thread). I'm using viewForFooterInSection ...

Is there a way to cancel an animated UITableView/UIScrollView setContentOffset:animated: ?

My app is crashing when my UITableView is released whilst animating. The app functions without issue so long as the animation completes. Below is the result of a tap on the UIButton which calls [tableView setContentOffset:offset animated:YES]; and then a lightning quick tap on the backBarButtonItem which pops the UITableViewController: ...

Populating a UITable with info from a website (mySQL database)

I'm looking to write an iPhone app that populates a UITable with information from a field in a database that is stored online, and when selected shows more information from the database. For example, a list of names that when tapped will show a bio for the person, some basic stats, and a picture. OR Is it possible to use CoreData, and...

Wrong size of UITableView using autoresizingMask

I have a UITableView which is not being resized properly using autoresizeMask (in iPhone 3.0). The UITableView is inside a UIViewController inside a UINavigationController inside a UITabBarController, all of which are being created programatically. The status bar is visible. The code of the UIViewController is basically: - (void)loadV...

Add a UITextField to a UITableView on a button click

Hi All, After quite a long time perusing the web i have decided to come here as i usually have my questions answered super speedy and super well on Stack Overflow! I am attempting to complete the following and would be grateful of any suggestions or pointers in the right direction: Display a UITableView When a "+" button is pressed a...

(Iphone) Retrieve Id from a Cell and use it in another query to display entry

Hi, I have a TableView who display the name of some Categories by executing this simple query "select * from category" so my object contain id_category and name. When I click on a row, a new tableView will display somes names inside thoses different categories. "Select * from fiche_Category where id_category = ?" My only probl...

iPhone Dev: Create own index

I currently got two problems I, both about the index of a UITableView I want to change the color of some section-tags in the index, to show that there are new changes within this section. I need to position the index on the left side of the table so it doesn't interfere with the detail disclosure Button Is there a way to realize this...

Share didSelectRowAtIndexPath selection in an array, between 2 controllers

On my never ending quest to share a table row selection to multiple views loaded in a modal view, I have got it down to one issue. I am using Apples DrillDownSave sample code as a model to recreate this magic. And think I have it all set up exactly the same... In the didSelectRowAtIndexPath section of my RootViewController.m, I have the...

iPhone UITableViewDelegate Question.

Hey all, I have a basic question that's driving me crazy. I have a class inheriting from UITableViewController. It is the root controller in my navigation controller. I have another class that implements the UITableViewDelegate and UITableViewDataSource protocols (my delegate). Basically, in my delegate's tableView:didSelectRowAtIndex...

Unable to dismiss MFMailComposeViewController, delegate not called

HI, I am calling MFMailComposeViewController from UITableViewController. Problem is, delegate method mailComposeController:(MFMailComposeViewController)controllerdidFinishWithResult* is never called when I select Cancel or Send button in Mail compose window. Here is the table view class: @implementation DetailsTableViewController - (vo...

Why does UITableView make so many calls to its delegate & datasource?

Anyone care to shed some light on why UITableView makes so many repeat calls to its delegate & datasource as it's being setup? Just looking at one I'm working on now I see that numberOfSectionsInTableView is called 3 times and then viewForHeaderInSection cycles through 3 more times for each section (I have 2 sections so total of 6 times ...

UITableView horizontal cell separator lines don't scroll up or down.

I have written some MonoTouch code to display a Nib'less UITableView and the view looks ok populated with cell data on initial display. However when I touch scroll down to view more data I end up with a double grid patten comprising of static horizontal cell separator lines that don't move with the scroll action plus another set or horiz...

Settings menu through UITableView

I'm trying to build a nice looking config-screen using UITableView (much like the settings on the iPhone, in the clock etc). I'm having some doubts as to how aproach this; I will need some UITableViewCells with switches in them (right now placed in the accessoryView), other that link to further pages and a detailLabel indicating the cur...

Sending user to view from search results

I'd like to implement a search into my app. I'm planning to use a left swipe, like the Spotlight search. Would that violate anything with Apple? My app is tableview based. The user can drill down a few levels before reaching a detail view. I'm considering two options for implementing the search: 1.) From the search results, I displa...

UIView Background Image and UITable View complications...

Hi Everyone, I am having a strange issue with displaying a custom image in my UIView. I have a table view that is setup displaying 4 cells, and then behind that I would like to have a custom image. Right now it is looking like this: where the tan is the background color I want, and the grayish color right next to the cells is the color ...

Scroll tableview without user noticing

I need to scroll a tableview on initial load of my RootController. The problem is that I have to wait until cellForRowAtIndexPath completes before I can do anything using scrollToRowAtIndexPath. cellForRowAtIndexPath seems to be the last event for me to hook into after the table has loaded. Because the view has already loaded, the tab...

resignFirstResponder

Hi, I have a litle problem resigning the keyboard. I have a table with two sections. In the second section, I load the class "stationenStartCellNumber" which has a UITextField. When I press anywhere outside of the UITextField, I want the keyboard to resign as first responder, and thereby closing the keyboard. It works perfectly inside...