uitableview

Table view similar to iPad app store??

Hello, all. I've been scouring the internet, and I haven't found a conclusive answer to this. If you look at the iPad App store (a number of other apps), the Categories tab has (what looks like) a 2-column table view. One solution I've read using a web view (which I haven't yet explored in depth). I've tried using subviews within a t...

Display image from MySQL database in a UITableView iPhone

I have some image data stored in BLOB format in MySQL database, I fetch the string and integer data but for image it does not display. i also tried using a UIImageView but it doesn't work. Can some one please post some code to display the image data in a UITableView. NSData-->UIImage-->image display. Thanks ...

Problem in table view

Hi Im using the table view in the view controller,with the simple array was displayed in the list.that array was displays and works fine but im getting this Warning.may i know the reason for this and please some ideas to rectify this issues.. WARNING: Using legacy cell layout due to delegate implementation of tableView:accessoryTypeFo...

sort elements of a table view in sections

in my app I have a table view where I download a list of hotels parsed by an XML(for every hotel i put in xml an attribute STARS); I need to view hotels by stars (from 5 stars to three stars), dividing it into three sections. So I have a section "5 stars" where there are 5-star hotel, a section "4 stars" where there are the 4-star hotel ...

oreintation problems in a section table view based app

hi, I have few text fields in sectioned table view. When i rotate the view gets rotated according to the orientation but not getting filled up according to the screen. For instance i have set the width using CGRectMake method for portrait as 70.0 but when it is turned to left the size of the text box is the same and not getting expanded...

App crashes when reloading tableView with new data

Hi all, I've got a view containing a segmentedControl and a tableView. The tableView is populated depending on the segmentedControl item that is selected (in this case Food and wine). The data for the tableView is generated from coreData. It works fine when starting up the application which any of the segmentedControl items selected (...

UIPickerView select a date and corresponding result shown in UITableView.

Hi! I am new to this field, presently i am on an application in which i'm parsing the data from xml file in my xml file there is a date (yyyy-mm-dd format), time (hh:mm format). i took some variable in application to store them like NSDate for date from xml and NSString for time purpose. i need that if i select some date from UIPickerVie...

uipickerviews inside table cell not selectable

Hi, I have a table cell for which I set its contentView to a custom view that contains one label and a number of uipickerviews. My problem is that only the first picker view is selectable, while all the rest are not. When I click on any of the not-selectable picker views, the table cell gets selected instead. Below is my code: // Ins...

How to refresh UITableView after app comes becomes active again?

I would like my UITableView to reloadData once my app is active again, after a user exits the application. I know I need to implement (in my app delegate): - (void)applicationDidBecomeActive:(UIApplication *)application but im not sure how to reference the current UITableView? UPDATE: My UITableView is a separate controller. It is a...

[[[NSFetchedResultsController sections] objectAtIndex:0] numberOfObjects] > fetchLimit

I am currently having an issue where my UITableViewController/UITableView which uses an NSFetchedResultsController displays about 86 items when the fetchLimit on the fetchRequest for the FRC is 4. I know that 86 items satisfy the fetch itself, and I know that the reason that they appear is because the didChangeObject: atIndexPath... get...

UITableView footer appearing in middle of screen because of keyboard

I have added a custom footer to a tableview using viewForFooterInSection I display a alertprompt where I get user input via a UITextField so the keyboard appears but when I press OK and the screen refreshes (via statement[self.tableView reloadData];) my footer is displaying ABOVE where the keyboard used to be so displaying in the middle...

iPhone UI Design question - Best way to design forms?

Hi, I want to design an app that needs user to input few things like start date, end date, bunch of other options and some text comments for which I am planning to use pickers to select the data that will slide up modally. I will need to move the view up and down to make sure that the element being filled stays in focus when the pickers...

Memory issue with Tableview cell and using a UIButton in the cell.accessoryView

I am adding a custom UIButton to the accessoryView of UITableViewCell. I pay strict attention to the retain count and have found that the retain count is incremented to 2 when I add the button but if I put in a release or an autorelease, the code crashes on an invalid reference after loading all the tableViewCells. First the code and t...

Change UIScrollView contentSize on tableView reload

Hi, My iphone application has this main view which contains 2 scrollviews. The first scrollview contains some information (this one has paging enabled and user scrolls horizontally) and the second scrollview contains the tableview. I am using UIScrollview to load tableView even though the tableView is a subclass of UIScrollview. This...

I have a UISwtch embedded in a UITableViewCell defined in a XIB file. How can I respond to a change to the switch state?

I built the cell with Interface Builder. I load the cells like this: UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID]; if (cell == nil) { [[NSBundle mainBundle] loadNibNamed:@"MassCircleNGTableCell" owner: self options: nil]; cell = circleNGCell; self.circleNGCell = nil; } UISwitch *s = (UISwit...

Iphone TabBarApp keeps launching a view from another application

My application keeps launching a view from another application, for a few seconds but returns to my current app. I realise that I had copied some code from App B. My app (let's call it App A) is a tab bar application whose nib file is mainWindow.xib, as well as the name of App B's nib File is mainWindow.xib. I have tried deleting the con...

NSFetchedResultsController section ordering

Hi everyone, I have a model like this one: I want to fetch the items in a grouped table view with the help of a NSFetchedResultsController where the Category.titles are the section titles, ordered with the help of Category.sortOrder. I tried to implement a compare- (which compares the sortOrder property) and description-method (whi...

Odd UITableView height behavior with NSZombieEnabled

I am setting my height: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { CGFloat rowHeight = 0; if(indexPath.row == [self.items count]){ //more rowHeight = 50.0; //same as moreCell } else{ ChartlyCell *cell = (ChartlyCell*)[self tableView:tblView cellFo...

iPhone SDK Problem: load TableView whitin TabBarControlled Views

Hi there, I've a problem and cannot find a solution to the whole day now. I'm new to iPhone SDK, so I guess I'm just missing something. My app consists of a TabbedNavigation, having three ViewControllers. Everything works as expected. Now I want to open a new view (preferably from a NIB) when the user tabs a button (not the tab button...

What happens if a UITableViewCell is not released?

What will happen if the autorelease is removed from cell creation in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { STVCell *cell = (STVCell*)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[STVCell alloc] initWi...