What I've done is created a custom TableCell view that gets populated with information from an array of objects. Each TableCell gets loaded in the
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"CellIdentifier";
Cell *cell = (Cell *...
I'm not sure if this is the correct way to create a UITableViewCell in code, but it works perfectly, until I need to reload the table as its returning old cells so not loading the new content.
- (UITableViewCell *)tableView:(UITableView *)tableViewData cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"...
Apple's documentation on UITableView discusses how to add/edit/delete rows, but it doesn't discuss adding/editing/deleting sections is detail, specially with respect to the UI. In case of add/delete rows, you can apply "add" and "delete" styles on the row using:
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingS...
Hi all,
I am using table view for editing an object .
I am using below code to construct a uitableview cell.
It is working nicely but somehow while scrolling the cells changing internally .
static NSString *CellIdentifier2 = @"CustomCell Editable Identifier";
cell = [theTableView dequeueReusableCellWithIdentifier:CellIdenti...
Hi,
I have a UITableView which has some dates on it. I would like to go directy to a specific entry (i.e. "today's date") in my tableview when I open it.
That means I want to have the past dates already scrolled down and the first line I see is the one with today's date. How can I do that?
Thanks,
Laurent
...
I use an NSFetchedResultsController to populate a UITableView, and would like to know if it is possible to create different sections based on an attribute of my data model.
I am displaying a table of objects, and one of the properties of the objects is a BOOL that is set to indicate whether or not the object is active. I would like to ...
I have a UITableViewController and I have specified the index titles so that the user can skip to specific letters much like the iPod app (the song list, specifically) on an iPhone. I have set up everything and implemented all the methods in the UITableViewProtocol.
Now, here is the problem. When I click an index on the right side (they...
I've been using @atebits's ABTableViewCell for a while. For those who are unfamiliar with it, basically it makes tableview scrolling much faster by drawing all the labels and images, instead of allocating UIKit objects (such as UILabels, UIImageView, etc).
Now, I have pretty big UITableViews and in each cell, there's a small (32x32) use...
I have a UITableView that I've set up by following Apple's various Core Data examples. Everything works fine with this view, however, the index on the right hand side only has letters for sections that are actually in the table. I'd like to have all the letters filled in, and if the user taps on a letter that doesn't have a section, take...
I have a selectedArray defined as a property in my file that holds which cells have been "checked". When displaying the cell I check whether or not the current cell value is in the selectedArray, and if it is, I display the UITableViewCellAccessoryCheckmark as the table's Accessory View.
The only problem is, when the user searches for t...
hey there, I am creating an app that requires me to add tables in a particular page. The page should
be in landscape mode but the application in portrait. I've figured out the switching i.e from portrait
to landscape and back to portrait [homepage(portrait) -> tablePage (landscape)] and vice versa. The problem is the table view keeps red...
I have a fairly simple iPhone app that downloads a set of UITableView results into its model class, and a view controller that's set up to observe these changes using KVO.
This system works well (much better than scattering update code everywhere), except that when I get results, I add them to the backing NSMutableArray one-by-one. Thi...
Hi,
I'm developing an application that requires me to display many short strings of text in table cells. Currently, I'm using a default table view cell with about 14 UILabels added. Half of these labels contain static text that will not be changed, while the other half contains dynamic data that has to be updated when the table is scrol...
Hi
I am working on UITableView. I have added a table in my view programmatically and populated it with some data by adding UILable as a subview of each cell. Table has 21 rows. Problem is that when i scroll up or down, the data in the first two rows and last 2 or 3 rows is overlapped with some other row's data. For example first two bowl...
Hi i'm trying to forward the touches I receive from an UIView which is in front of an UITableView. But doins so I can't make the table scroll anymore (see here).
So now I'm trying to make tha tableview scroll programmatically and I am looking at setContentOffset:animated: and scrollRectToVisible:animated: with having success only with t...
Hello,
I have an app that uses a UINavigationController. On one of the pages, I add a UITabBarController in my viewDidLoad method. Once I'm done initializing and configuring the UITabBarController, what is the appropriate way to make the UITabBarController's contents visible?
If I use:
[self.view addSubview:self.tabBarController.vie...
In Apple's example code, the method tableView:cellForRowAtIndexPath: of a UITableViewDataSource returns a cell with a retain count of 1; it allocs it, but doesn't autorelease it. However, the static analyzer complains that this violates the Cocoa naming conventions, since the method name doesn't start with 'new', etc. The documentation d...
Hi everyone, i've another problem with the UITableView, app crashes after reloading tableView after loading data from internet, the crash happens in marked place in cellForRowAtIndexPath methood.
I thinnk i still don't fully understand what actually mean recycling cells.
Thanks for any help
- (UITableViewCell *)tableView:(UITableView *...
I'm developing an application based on the Tab Bar application preset. In one of the tabs I have a table view showing a lot of data, but half the last cell in the table view is covered by the tab bar when I've scrolled to the bottom.
Anyone has a solution to this?
...
I have a UITableView, when a cell is taped i want to delete it automatically (no editing mode).
When it is tapped i can delete that object/data in the dataSource, but then how can i update the TableView, or refresh it so it so it shows the data in the dataSource after i change that data.
Thanks very much for any ideas:)
...