uitableview

UITableViewCell behavior in simulator vs. phone

I'm using the 3.1.2 version of the SDK. I have an app wherein I created a UITableViewCell in IB to display two lines of text per cell. When I run the app in the iPhone simulator, everything works exactly as expected; however, when I run the exact same code on my phone, the app crashes with the following error in the console: Terminati...

Complex iPhone tableviews, where's the trick?

I was wondering how do people fill a tableview like the one in Safari's preferences, in the iPhone simulator. I guess I have a tableview controller and then I add controls programmatically? (one by one!?) Is there any trick I'm missing? If I use a resource list or an array, could I get the same result? I mean, with a complex setup, nice...

Multi Column header for a UITableView with Multiple Columns

I have created a UITableView with multiple columns to display a Football League Table. Now what I really need is a header to label each column which will ideally sit at the top of the table view. How would I do this? ...

iPhone SDK: Loading an NSArray from Documents

Hello there, I'm saving an array I use into Documents and when the app loads it puts the array into a UITableView instantly. This loads fine and has all the correct data, but when you try and scroll the UITableView a little bit the whole app crashes... When I refresh with a new set of NSArray from the web it loads fine and scrolls perf...

What technique should i use to replicate the Compose email view in an iphone App?

So I have an Application that involves sending emails through an API. What I would like is that to have the same or similar to compose email interface available on the phone already. Unfortunately in all apples Goodness there is no view that just does that. [AppleComposeMailViewController alloc]; Would do the trick nicely...

What's with [UITableView reloadData]?

I have an application that has a UITableView. This UITableView is populated by an NSMutableArray being held (as a property) in the appDelegate. You can think of this as an email window. It lists messages in a subclassed UITableViewCell. When a new message appears, I have all the code done which downloads the message, adds the data to the...

Other interface elements in a UITableViewController, cells not deselecting

Hi I'm struggling to create a table view controller that has anything more than just a table view in it. I don't want to use a footer view, as I'd like a toolbar at the bottom of the page, and there are cases where there aren't enough rows in the table to put the footer at the bottom of the screen. The other issue with this is that the...

iPhone development question: Populating table view

I need help, I need to populate a tableview with objects from my array... I may be using some methods from mac code (lol). I just need some help. Here is my header and implementation files, thanks. #import <UIKit/UIKit.h> @interface Chuck_FactsViewController : UIViewController { IBOutlet UITableView *tableView; NSMutableArray *chuckJo...

iPhone SDK - Looking for resources regarding....

I am wondering if anyone can help me find two resources for iPhone Development. 1) I am looking for a nice tutorial explaining how to use UITableView to input settings (UITextField, UISwitch, etc...) just like practically every single app does. 2) I am also wondering if there is a resource online that has Custom Objects for IB. I find ...

What type of iPhone application file should I use?

What type of iPhone application file should I use? Before, I was trying to make an application that gets information from an RSS, then populates a tableview. The application would be using a Tab Bar, and have many different views. Before I tried using a "Tab Bar Application" but I did some stuff wrong (I am not sure what) and I had to...

Should I store it in an array, or what?

Hello, I am making an application (iPhone app) which gets information (jokes) from an RSS feed, then populates the tableView. Now, would I take the RSS and store it in an array then populate the tableView, or what? And how do I receive information from an RSS feed? Thanks! ...

Want to mimic iphone address book search (In terms of interface & interaction)

Hi, When you do a search in the address book the flow is: 1) Select the search bar 2) The right most transparent a-z index is removed 3) A transparent black window is placed over the current UITableView 4) When you begin typing, a new UITableView is loaded with no data 5) The UITableView is populated with data as you type. 6) If ...

How do I add a UIButton or UISwitch in tableView:viewForFooterInSection

Hello. I'm trying to understand how to add a label with a UISwitch or other controller to a footer (or header) in a sectioned tableView. Any help would be greatly appreciated. Thank you in advance! ...

iPhone UITableView with UISearchBar and refreshing Section Index

I have a UITableView with a UISearchBar at the top of it. I also use the Section Index delegate to display ABC...XYZ on the right hand side. Problem occurs when I click on the Search Box and the keyboard comes up from the bottom, the Section Index squashes so only A*D*...*Z are displayed - when I close the Search and they keyboard goes...

UITableView cell refresh problem on rearrange

Some help would be greatly appreciated here! I have a custom UITableView cell, consisting of an image (green,orange or red) and two labels in different font sizes. The UITableView is driven by an NSMutableArray of objects. The UITableView is split into three sections, with the first section containing all the cells with the red image,...

Detect when UITableViewCell goes off the screen

Hi, I'm implementing a rich UITableView with custom created UITableViewCell, I show these on the screen in one fashion, but once they go off the screen I want to take a note of that, since the second time they come on I would like them to get displayed in a different manner. Think auto "mark as read" when going off the screen. I've bee...

How to limit UITableView row reordering to a section

I was hitting my head over this one, and google was turning up nothing. I eventually worked it out and thought I'd write it up here for the sake of the next person. You have a UITableView with multiple sections. Each section is homogeneous, but the table overall is heterogeneous. So you might want to allow re-ordering of rows within a s...

Modify UITableViewCell from UIViewController with UITableView Outlet on iPhone

Here is the situation, I have UIViewController class with a UITableView outlet. I would like to modify / style the cell. I believe I can do this with UITableViewCells tableviewCellWithReuseIdentifier method. Since my class is not a UITableViewController it doesn't have this method. How can I use this method from the UIViewController...

how to add a button without using custom cell on a UITableView?

how do i add a custom button on a UITableViewCell ANd Then delete The Cell With That Button Without Using Interface Builder And Custom Cell? the data is loaded from the database.. plz someone help me ...

iPhone App: How to get data from an API, parse, and store for later use?

I'm new to iPhone app development so excuse me if I use the wrong terminology, or ask the wrong questions. Basically, I'm trying to write an App that includes downloading a dataset, saving it for later, and checking if the dataset has been updated, but I don't know where to begin. When I say dataset, I mean a multi-dimensional array of ...