I'm trying to make a simple accordion-style menu system for iPad using a UITableView and expanding rows.
The way I implement this is storing the selected index path and in heightForRowAtIndexPath: conditionally setting the row with that index to be larger. In didSelectRowAtIndexPath: I provide an empty update block so that the table wil...
Hello, I have a UIViewController that inherits all the delegation for the UITable.
I have a UITableView called table that is set in my simple_tableViewController.h.
I have set
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
but the main view rotates but the table does ...
Hello again to all, I hope this question doesn't get answered by MR. Marcus he is a very busy man and I feel a little ashamed when has to answer because no one can.
I have this pretty much standard tableview with a bigger than normal cell at the end that holds a UITextView. When I tap inside the cell the keyboard shows up and the table...
In my view controller, when I instantiate my UISearchDisplayController object, I set its various properties, including the background color of the searchResultsTableView property:
self.searchDisplayController = [[[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self] autorelease];
searchDisplayController....
What I want to achieve is a UISearchBar that moves up and covers the UINavBar, and contains a cancel button on the right of it. All goes well, until I use the following line of code:
searchDC = [[[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self] autorelease];
What ends up happening is the UITableVi...
In my application i hve tableviewcontroller and its detailviewcontroller(dvc). dvc contains textfield and button.I actually want when i clicked on button textfield text is replaced the tableview cell text.what can i do ? explain in detail
...
I have watched the Lynda iPhone tutorials and on the lesson about Tableviews there is a method to create a cell as follows.
//create cell
UITableViewCell *cell = [[UITableView alloc]
initWithStyle:UITableViewCellStyleDefault
reuseIdentidier:@"cell"];
but Xcode says there is no such me...
Hello, i am building a sectioned table, and it is showing up with what looks to be a section on top of a section. You can see on the image that there is a white line under each section.
The image
Here is the code i have to build the table:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return [alertList c...
I would like to edit a plist from Xcode which I will use to fill the table view.
The thing is I have an array of images, and the user can add one of these images to a favorites list.
This needs to be written to the plist. So I need the index number of the image and the name they choose to save it with. How can I write to a plist?
Th...
When I click on my tableView's detail-button... I can manage to get the section number, the row number, and even the cell itself... but why is the actual "detail button" unobtainable? (NSLog always displays "(null)" for the button.)
- (void) tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)inde...
I am using the EGOTableViewHeader class provided from:
http://www.drobnik.com/touch/2009/12/how-to-make-a-pull-to-reload-tableview-just-like-tweetie-2/
I am able to display my view at the top of my UITableView:
refreshHeaderView = [[EGORefreshTableHeaderView alloc] initWithFrame:CGRectMake(0.0f, 0.0f - self.tableView.bounds.size.heigh...
I have a delegate for my table view, and would like to be able to trigger an action when the user selects a cell in the tableview.
How is the method - (NSIndexPath *)indexPathForSelectedRow correctly implemented?
Thanks in advance.
...
Hi,
I am loading an External web page in the UIWebView. When the web page loads, there is an Alert Box ( with OK and Cancel buttons) with some Suggestion/ Info about the web page. I want to block this Alert Box when the web page loads in the UIWebView component in my iphone app. How can I implement in my code?
Thanks in advance.
Kind ...
How would I go about letting a table view's header view scroll in and out of bounds even when the table's overall content size is not larger than the bounds. As an example in the Mail.app even in views with no messages you can still scroll the search bar in and out of view (with no scroll bar I should add). How can I get this functionali...
How can I determine if the user has scrolled to the last cell/bottom of a UITableView?
...
I have a quick, probably basic question regarding UITableView in iOS. I'm trying to insert a row at the end of my table. It works with every animation except UITableViewRowAnimationBottom. If I specify this particular animation, the cell appears at the end of the table, rather than animating.
My code is essentially as follows:
- (void)...
Hi Guys,
Perhaps it's very simple but I can't figure it out.
I have a custom TableviewCell. I'm using iPhone SDK 4. I am creating just one row in table view (Grouped) but sadly that table view has double border on top and all other sides have normal single border. I must say that I noticed that when upgraded to Xcode 3.2.3 and iPhone S...
I have a grouped UITableView with some large images. However, scrolling performance is quite poor (note: it was excellent before the iOS 4 upgrade, now it's very jittery). I've read that using drawRect instead of adding subviews to the cell could improve performance.
First question: Is that true?
Second question: If it will increase p...
Hi
I'm getting better and better with doing things for the iPhone in xcode, but here I have ran into a dead end.
I'm trying to build an app with two views: the main one and one for settings. I want to be able to switch between the two of them. Since I need every pixel in the main view I have built a switchView class that simply switch ...
Hi,
I have succesifully customized a UITableView component in my UIViewController with all kind of stuff. Like borders on top, sides and bottom, spaces between cells and etc...
The problem is that I have done this in the implementation file of my UIViewController.
I want to create a UITableView component with all that already in it, s...