uitableview

iOS - Multiple sections in UITableView with the same objects

I am trying to make a tableView that contains notes. The notes are tagged by the user. Each note might have several tags. I want to be able to sort the notes by tag into different sections. If a note has several tags I want the note to appear in all the different sections that the note is tagged for. Right now I am using the NSFetchedRe...

images in tableview cells

Ive added a uiimageview as a subview to my cell.and then put a label on top of it so that it would seem like a button.But whwn the table is scrolled up or down the image seems to get painted again.This turns extremely ugly as my image has transparency effect which is lost as soon as it goes out of view and comes back.??? ...

Adding an extra cell to the top of a UITableView in Cocoa

I have a table being generated from an array of NSManagedObjects. This works fine until I try to add an extra cell at the top of the table. Here is what I'm trying at the moment: -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { int menuLength = [mainMenu count] + 1; return menuLength; } ...

Click Thumbnail to Expand Image in UITableView

Hey guys, So I have a UITableView that has a list of image names and corresponding thumbnails, and I'd like to implement some sort of click to expand thumbnails, so when a user clicks on the thumbnail, it expands to fill the whole screen. Is there an easy way to do this? It needs to only expand for the image part of the cell, not the te...

Custom content redraw on UIScrollView zoom/unzoom?

I have a parent UIScrollView and inside it, there are several UITableViews. Horizontal scrolling should be handled by parent, vertical scrolling and taps - by children. As far as I know, that's feasible, I've seen some sample from Apple. By I also want to intercept pinch-to-zoom events and do a total redraw of parent scrollView's content...

UITableViewCell gradient layer auto resize

I'm using the CAGradientLayer method from this answer to set a gradient on my UITableViewCells. However, for this table, I increased the height of the cells via tableView:heightForRowAtIndexPath:. My gradient layer now does not cover the full height of cell, but instead stops at the original height (see pic). I tried setting the fra...

Add a UINavigationBar to a UITableViewController without a UINavigationController

I have an existing UITableViewController that was previously being used in a UINavigationController. I need to convert it to be presented as a modal view. However, I still want to have a navigation bar at the top. I know this sounds strange- why not present it in the UINavigationController if I want a UINavBar? I want to present it with...

Ignore Tab character in UITextField... (iPad app)

Hi everyone, I have a TableView with TextFields in each cell and I want to those textfields ignore the character tab (/t). When the tab key is pressed, the textField:shouldChangeCharactersInRange method it's not called Does anyone knows how to do this? I know that there is no tab key in the iPad keyboard but the blutooth and dock one...

UITableView width when inside a popover

See below - the tableView cells are getting cut off. Why doesn't this work? The width of the popover is 240. (In a subclass of UITableViewController) - (void)viewDidLoad { [super viewDidLoad]; self.tableView.frame = CGRectMake(0,0,200,200); } ...

UITableview fixed content group sections based on array size

I have a dataset that I wish to display in fixed size grouped sections. The sections each consist of three rows, a header, a switch and a text field. Each section represents a dictionary (constructed from my coredata 'records') The number of 'groups' that I need to display depends on the count of objects stored in my coredata store. T...

UITableViewCell cellForRowAtIndexPath calling large number of rows when first scrolling

I have been working on a problem relating to UITableView and cellForRowAtIndexPath. I want to give the user the ability to have a very large number of rows much like a large list of email on iPhone. I discovered this problem when I began to create a class that would queue and dequeue groups of records from the database, as needed, in ...

How to stop a UITableview from scrolling horizontally?

For some reason my iOS UITableView is scrolling horizontally. Any ideas why this may happen? Thanks. Edit: It seems to be the result of repositioning the table in code with screen reorientation. So I guess the question is: how do I reposition the table and not get the horizontal/diagonal scrolling? ...

How to put text on different lines in a table cell

In a table cell I tried putting "\n" in the text, but this doesn't put the text on a new line it just puts a space in between the text. ...

sqlite foreign key in iphone sdk

hai guys, i am planning to create a table view and the detail view for the corresponding row, all the datas are fetch from the sqlite database. For this i have created two tables in the database table one for the datas in the table view list and table two for the detail view of the table list. i set the product id as the primary...

numberOfRowsInSection called but not cellForRowAtIndexPath in MultipleDetailViews sample of apple

Hi, If you download this sample (ipad): http://developer.apple.com/library/ios/#samplecode/MultipleDetailViews/Introduction/Intro.html and you set a breakpoint at numberOfRowsInSection and also at cellForRowAtIndexPath and you start in landscape then i have the following question: First: the app comes twice in numberOfRowsInSection -> ...

SearchBar not displaying results until cancel button clicked

I have implemented a UITableView with search bar (and search display) - all works fine, but the table results do not get updated until the search bar cancel button is tapped. Delegate methods: - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar { // asynchronous request with [self.tableView reloadData] in the connectionD...

NSFetchedResultsController delegate methods won't be called after rearranging table rows

hi all i wonder why the delegate methods of NSFetchedResultsController won't be called after i reorder table rows. my problem is that rows disappear when i rearrange them in my tableview with the method - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath so ...

How to get table target cell inside tableView:heightForRowAtIndexPath:?

Hey community, I am trying to get variable-height table cells implemented and what I thought would be an elegant solution turned out into a recursion/stack overflow: - (CGFloat)tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { MyCustomCell *cell = (MyCustomCell *)[aTableView cellForRowAtIndexPa...

Mapkit used in a grouped table cell and extends the rounded corners

I have a custom UITableViewCell set up with a MKMapView set up within the cell. I would like the map to take up all of the cell and so I have set the Map View to have the same dimensions as the TableCell. The application is working ok, but the square corners on the Map View extend beyond the bounds of the table cell. Is there a way to...

UITextField in UITableView cell is returning null

Hi all, I've been banging my head against the wall on this one for quite some time now. Any input or direction is greatly appreciated. So the goal is the create a log in form from text fields in a table. That user info, once collected will be passed on to an array in a seperate view controller so in can stored in a "favourites" list. ...