uitableview

exception thrown trying to insert new table row into section

I seem to be encountering a very odd problem which only occurs when trying to insert a new NSManagedObject into a new section. Basically my sections are days and individual cells are associated with times. When I MOVE an object to a day which doesn't currently have another object (table row) associated with the day, the table needs to cr...

Core Animation and drawRect:

Hello, I have a UITableViewCell drawn using drawRect:. I'm drawing an shape in drawRect and would like to animate this shape (using some parameter) when using the cell goes into edit mode. However, I couldn't find how to use animated parameters within drawRect. Could someone point me to the right documentation or is it impossible? Tha...

Determine the section of the tabbed UITextField

This is a tricky one: I have: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ... //Textfield: UITextField *theTextField = [[UITextField alloc] initWithFrame:CGRectMake(200, 10,self.tableView.frame.size.width - 250, 30)]; theTextField.adjustsFontSizeToFitW...

UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:

import I am trying to implement a custom cell to use in my tableview This is my custom cell interface class @interface CustomCell : UITableViewCell { IBOutlet UILabel *nameLabel; IBOutlet UITextView *inputText; IBOutlet UIImageView *image; IBOutlet UIButton *btnBuy; } @property (nonatomic, retain) IBOutlet UILabel *n...

Create a grouped tableview with gradient on its border

Hey everybody, I need to create a grouped tableview with gradient on its border (not on its cells). I made some research on the web but I'm not sure I understand how to proceed. A little help could really unblock me in my project :). Thanks ...

iphone, I'm returing from a pushed view, which event do I reload my table data in ?

I'm returning to my table view after selecting a new date range, I now need to reload the data in my table, which event do I do this in ? Heres how I'm pushing my date selection sreen. MyViewController *nextController = [[[MyViewController alloc] initWithNibName:@"MyView" bundle:nil] autorelease]; MyAppDelegate *delegate = (MyAppDelega...

how to go from XML to an indexed UITableView

Hi all, I need to parse an XML file so that i can use and indexed UITableView. If I parse the xml, i create an array that holds Companys (for example). I have a class that is the Company, with it's address, etc... How can I go from one array to an array of arrays, with the A, B, C, ...? Do i must create so many arrays has the letters of...

Drag and drop between two tables in ipad

Hi all I have two UITableView in my iPad application. I want to drag a cell from one tableview and drop onto another tableview. Please suggest me any idea how can I Implement drag & drop between two tables in iPad ? Thanks in advance ...

refreshing cell content after deleting cells

I have the following problem: I have a UITableView with some Text and some Images as content. The TextLabel of the cell displays the text and I add a UIView with some UIImageViews as its subview to the cells contentview. Everything works fine until I delete some cells. What happens is, I delete a cell (lets say the first) from the tabl...

UITableViewCell not displaying data

Hi I am calling - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CustomCellIdentifier = @"CustomCellIdentifier"; CustomCell *cell = (CustomCell *)[tableView dequeueReusableCellWithIdentifier:CustomCellIdentifier]; if (cell == nil) { ...

UITableView loads data too early... or too late

I have a UITableView that changes its data very often. (It's just NSStrings, stored in an NSArray.) Method 1> [self loadMyArray]; Method 2> [myTable reloadData]; Where would I put those 2 methods... so they get called EVERY time the view is displayed? I assume some likely places would be: viewWillLoad viewDidLoad viewWillAppear vie...

iOS Launch Images for UITableView

According to the iPhone Human Interface Guidelines every app needs a launch image. My app is just a navigation controller which contains a table view. How can i simulate an empty tableview and navigation bar as per the guidelines. "Simulate Interface" in IB fills the view with the standard California data. I tried creating a basic navig...

UITableView background with alpha color causing problem with UITableViewCell

Hi everybody, I'm trying to get a semi-transparent uitableview, with this color [UIColor colorWithRed:(247.0/255.) green:(151.0/255.0) blue:(121.0/255.0) alpha:0.38]; It's ok if there are only empty cells, but when a cell has content inside, the background turns more solid. It's as if the cell itself had the same table background, so ...

Size of UITableViewCell has major impact on smooth scrolling?

G'day guys, I'm building an iPad app at the moment and our designer has given us a view that has an image background and a tableview that covers a section of that background (it isn't transparent don't worry about that). Each cell contains information about stores. I've implemented it by looking at the smoothscrolling code from Loren Br...

How to change how table sections display themselves?

I want to display the sections in a UITableView different from the built-in behaviour, with images as the section header and footer. What is the best way of achieving this? ...

objective-c spilt array in multiple arrays for uitableview grouped

hi i have an array of objects which need to be sorted (alphabet on name) ArtistVO *artist1 = [ArtistVO alloc]; artist1.name = @"Trentemoeller"; artist1.imgPath = @"imgPath"; ArtistVO *artist2 = [ArtistVO alloc]; artist2.name = @"ATrentemoeller"; artist2.imgPath = @"imgPath2"; ArtistVO *artist3 = [ArtistVO alloc]; artist3.name = @"APh...

Long press on UITableView

Hi, I would like to handle a long press on a UITableViewCell to print a "quick access menu". Does someone already did this ? Particularly the gesture recognize on UITableView ? ...

Horizontal scroll of Images in UITableView

Hi All, I am trying to implement a list of items on the iphone in which each item is a range of images that can be viewed by users by simply sliding across. I've been able to create the list framework using the UITableview and linking its datasource to my UIViewController. All I need to know now is how to place images in each table ro...

how to create a page to display information like About on iPhone with some fields have Disclosure indicator?

i would like to know how to build a screen that looks exactly like the About screen on iPhone. I would like to display information in such format.. its so clean.. any ideas? ...

Logic to find states in an Enum

I have a method that brings in an Enum value as an argument. enum { UITableViewCellStateDefaultMask = 0, UITableViewCellStateShowingEditControlMask = 1 << 0, UITableViewCellStateShowingDeleteConfirmationMask = 1 << 1 }; There are four possible values: Only UITableViewCellStateDefaultMask is t...