I have been getting a weird memory leak and i just pinpointed what is causing. I am using a utility application that has a main view and a flipside view. When you are on the flipside view you are able to present another modal view by clicking a plus button. This view has a UISearchBar and UITableView. When clicking on the UISearchBar...
So I'm having trouble implementing a search bar in my app.
The methods find the filtered items but for some reason they won't show up in my tableview.
I think it has something to do with adding the objects to the filteredListContentArray.
What object should I be adding for this to work.
Here's my code:
{
[self.filteredListContent rem...
Hi
I just have a quick "best practice" question regarding custom cells in a UITableView.
My problem arises when I have build a custom cell in the if(cell == nil) block in the
- (UITableViewCell *)tableView:(UITableView *)theTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
(1) If I build labels and set the text property of the...
I've seen a number of blogs claim that UIAlertView from firmware 3.0 onwards will show a table view if too many buttons are added to it to fit in the alert box. However, I don't seem to find this the case, either in the simulator or on the device. Before I look at using one of the mechanisms for manually adding a tableview to an alert,...
I have a string of data in a plist, which I've got to display, hierarchically like this:
Menu>Chapter>SubChapter>item>item details
This might be super simple, in my initial menu, how would I have all 'All' Menu item to display all the 'items', essentially skipping the chapter and subchapter and cutting out that aspect of my filter, whi...
I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
Profile_ManagerAppDelegate *appDelegate = [[U...
I'm using Core Data for a table view, and I'd like to use the first letter of each of my results as the section header (so I can get the section index on the side). Is there a way to do this with the key path? Something like below, where I use name.firstLetter as the sectionNameKeyPath (unfortunately that doesn't work).
Do I have to gra...
Anyone knows how to read all contacts from address book and show it in a tableview in the main screen ?
...
Hello all,
I am developing an iPhone application .
In the application I want to show the uitableview data sorted on the date field :
Suppose I have a Person object with fields name,birthdate,phone number etc.
Now I have array of Person and I am sorting that array on date field.
Now I am not understanding that how to handle these two...
Hi all,
I've come to the point of pulling my hair out over this one. I keep getting a EXC_BAD_ACCESS when I call the reloadData for the UITableView. I'll lay the groundwork for you here.
MainViewController.h
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@class iPROSAppDelegate;
@interface MainViewController : UIViewCon...
I have a grouped tableview that is populated with XML data in one section. What I would like to do is create another section prior to the data driven one, and apply an action to it.
Example:
The user is presented with a button that says "use your current location" (manually created section) and below that is a list of countries the use...
Hello, Every one.
I am confused a little bit about settings table view cell accessories.
I have fixed two sections in my table
Home
Office
What I want is as follow....
When User tap any of the cell
Cell gets selected &
I want to set checked (set uitableviewcell accessory type -checked of tapped cell )
And also all other cell's...
My apologies for posting such a book-specific question but by question relates to a particular explanation, which some of the members here may have come across, in "Beginning iPhone 3 Development: Exploring the iPhone SDK by Dave Mark and Jeff LaMarche". I have tried the book's forum some time ago with no response.
I am slightly confuse...
How can we make the text in the label of a table view go to the next line?
...
This "wizard" gives me a tableview to work with when I build and run. RootViewController is subclassing UITableViewController. Opening up the XIB, there is a table view, but what is the name of the tableview instance being displayed?
I'm trying to reload the tableview after a receiving data from an asynchronous URL request and I don't ...
Hi
I was wondering if there is a delegate method to implement that let's me distinguish between a tap on the content view of the cell and the disclosure symbol to the right.
I would like to send the user to two different view depending on where on the cell they tap.
I think the event is normally caught by testing if the tableView is:
...
Hello everyone,
Here is the thing. I have a ViewController which contain a view in full window. And the program run in landscape mode.
I want to put an UITableView over the full screen view but only on right half part of the screen.
So I add a UITableView in my view controller, I used the Interface Builder in order to set the Table...
I have a UITABLEVIEW where I want to show the delete function for only certain cells (that is, certain cells are user deletable certain cells aren't). As far as I can tell, seteditable: is only set at the table level. Is there a way to override this or hide the delete button on certain cells?
...
I need to create a table view with 1 or 2 sections, depending on certain conditions. The first section needs to contain all of the remaining months of the current year, and the second section contains the preceding months of the next year, up to but not including the current month.
Example:
2009
November
December
2010
January
...
I have a UITableView that is styled as a grouped tableView. Under certain circumstances I need to create a custom view for the header and under other circumstances I want the default one.
Creating a custom header is the easy part - simply use the delegate:
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger...