I have a UITableView with a cellForRowAtIndexPath method that creates a UITextView, then adds it to a cell. No memory leaks were detected, but when running Instruments (Object Allocations), the Net memory is on a one-way trip to 18 MB, where it crashes.
My app constantly adds and deletes cells in the tableView datasource, but because t...
I am using a custom uitableviewcell and am trying to recreate a loose-leaf piece of paper for the background. Since each cell can grow depending on the amount of text, I need to use a pattern for the background of each cell. But I am having problems with these black lines and it's driving me mad!
I have made sure the tableview is not op...
I created a custom UItableviewcell
added a button into its initWithStyle area:
favoriteButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect] retain];
favoriteButton.backgroundColor = [UIColor clearColor];
[favoriteButton setTitle:@"Play" forState:UIControlStateNormal];
[favoriteButton addTarget:self action...
Like the Settings app, or a UITableCellStyleValue1?
I'm basically trying to replicate the tableviews in Settings.app, where you have a label and a textfield. I'm stuck trying to make the cells curved. How can I go about doing this?
Thanks!
...
Currently I have a grouped tableview with four different custom cells. My last cell needs to be a button but I'm not sure how to implement this correctly. My code is below:
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
UIButton *btn = [UIButton button...
Hi ,
i need to create a screen which is a replication of the default iphone stock application without the scrolling on the bottom table , what would u think is the best way to replicate the look and feel of the screen ?
i've created a uiview and added two uitableview setting the delegate and datasource to the same view for both of them...
By default, a UITableViewCell instance positions the label pair textLabel/detailTextLabel in the center of its parent view. I prefer to have the pair aligned to the top of the cell. How do I do that programmatically?
Thanks,
Doug
...
Hi all,
Im sure this is going to be one of those things where someone points out something really obvious that Im doing but I cant for the life of me find the problem. Basically I have an array of strings and I am loading the text from the array into my uitableviewcells as and when it is needed. The problem comes when I begin to scroll ...
I have some code that creates a table cell with a slider. It's pretty straightforward and it sizes well on the iPhone. I've anonymized it a bit here:
UITableViewCell* cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Foo"] autorelease];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
C...
I have a tableview that is successfully incorporating an NSFetchedResultsController. However, I need the topmost cell in my tableview to read, "Add new object" and have UITableViewCellEditingStyleInsert instead of the default UITableViewCellEditingStyleDelete.
The FetchResultsController wants to check the managedObjectContext for object...
Hi All, I have a UITableView which has custom cells as its rows. In these custom cells they have 2 buttons.
I catch the click of the button in the custom cell class. Just wondering how i pass that event from the custom cell class through to the parent view controller that is holding the UITableView control. Advice?
Thanks
...
Hi,
I've got a problem with my custom UITableViewCell. I have my custom labels and want to move them aside when the delete button appear.
I tried the method: -willTransitionToState: but the animations doesn't work. The change is made immediately, but not with my animation.
Does anyone knows a method to use?
Thank you!!!
...
The following code (located in my -viewWillAppear) successfully implements a cell as a tableFooterView:
CGRect cellRect = [self.tableView rectForRowAtIndexPath:0];
UITableViewCell *footerCell = [[UITableViewCell alloc] initWithFrame:cellRect];
//footerCell.editingStyle = UITableViewCellEditingStyleInsert;
footerCell.textLabe...
Hi Everybody,
I'm trying to create my own custom cell, but for some reason, it isn't appearing. I read a lot of example, the code looks like (at least for me) equal to others. I used the interface builder to recreate it (I deleted the Default View, add a TableViewCell, put Identifier = CustomCell, and wire up the Label with valueLabel)...
What is the difference between adding the subview to self and or to the content view?
Subview added to self
- (id)initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame])) {
UIImage *img = [UIImage imageNamed:@”lol.jpg”];
UIImageView *imgView = [[UIImageView alloc] initWithImage:img];
[self addSubview:imgVi...
I am not highlighting my uitableview cells when they are selected, but they contain clickable links which shows a new view. is this ok?
...
I have a UITableView that represents a list of objects, I'd like the user to touch an object, drag it onto another one (as to combine them) and seeing the two disappearing and a new one appearing. I guess that I can't do this with the standard table view editing methods (a row cannot be dragged onto another one, am I right?). Shall I wri...
I'm trying to load some images in table cells asynchronously using ASINetworkQueue. I just can't figure it out and can't seem to find a good SIMPLE example.
The best I can find is this, but its just totally overkill and a little too complicated for me:
http://kosmaczewski.net/2009/03/08/asynchronous-loading-of-images-in-a-uitableview/
...
Hey everyone, this seems like it should be a simple one; I really hope it is. As always, thanks in advance!
All I'm trying to do is add a background image to a grouped style tableview. I'm using the following method in viewDidLoad:
self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background.png"]]...
It's an edit screen for a specific item in a table view. Don't know if I'm going to have to make a custom view or not. Feel like I've seen this kind of layout before though...Thanks.
http://martyulrich.com/Home/Home_files/help.png
...