Hi there!
I have an issue with the background image of button which is dependent of button state. I have a button inside customized table view cell and i have set different images for button's different states. Please look into the code below.
[btnNow setImage:[UIImage imageNamed:@"now_norm.png"] forState:UIControlStateNormal];
[btnNow...
I have a customer UITableViewCell whose whole display is drawn indrawRect. When it draws it creates CGLayers so that it can reuse certain pieces when something is changed.
I have changed my UITableViewCellSelectionStyle to "None" because I don't want the default selected view to cover my drawing.
My problem is that I call setNeedsD...
Hi guys,
I'm creating a uitableview with custom cells which I created in Interface Builder. There are currently three cells (UITableViewCell).
I have a UITableView which is on the view.
The code I have is fairly standard, but I cannot work out how to actually SHOW the three custom cells. I am using the cellForRowAtIndexPath method.
...
I am trying to customize a UITableView. So far, it looks good. But when I use a custom UITableViewCell sub-class, I do not get the blank table cells when there's only 3 cells:
Using the default TableView style I can get the repeating blank rows to fill the view (for example, the mail application has this). I tried to set a backgroundC...
Hi,
I am having two section in my table view. I used the setSeperatorColor property to change the color of the seperator. It is actually changing the color of both the sections. Is it possible to change the seperator color based on the section ?
...
I need a way to alter the UITableView row height differently, but without implementing the delegate method -tableView:heightForRowAtIndexPath: because it causes me some serious performance problems in an indexed table with 15.000 rows.
Now the thing is, that every third table is 10 units bigger. than the others. These are a different ki...
Hi,
I'm trying to make a UITableViewCell that has a group color panel on the left. The gradient color part I think I can handle, but I can't work out how to get it to clip correctly at the round corners.
I'm after something like this:
I've tried a custom draw UIView added as a subview of the cell's contentView, but it didn't clip. ...
When I try returning the count of my newsItems array it breaks my application. I used NSLog to find out what the value of the newsItems count was when I returned 1.
Here is from NSLog
2010-04-13 07:48:40.656 RSS Feed[453:207] Values of num items 31
2010-04-13 07:48:40.656 RSS Feed[453:207] Number of items 31
Does anyone know why return...
Is it possible to shrink the spacing between a cell header and cell text? Looking at the example below I'd like the header to be closer to the top of the cell that contains the other text.
Sorry, I don't have high enough reputation to embed images.
http://www.freeimagehosting.net/uploads/6afdd58c2f.jpg
...
I'm writing a simple iPhone app which lets a user access a series of calculators. It consists of the following:
UITableViewController (RootViewController), with the list of calculators.
UIViewController + UIScrollView (UniversalScroller), which represents an empty scroll view - and has a 'displayedViewController' property.
UIViewContro...
I have a table, I have cellForRowAtIndexPath delegate for it and I have instance of UITableViewCell being created inside that method, which I return. Somewhere in cellForRowAtIndexPath I also add UIButton to cell.contentView of that cell. It all works fine, until I select that cell with button in it. The cell changes color to blue (which...
I have a custom UITableViewCell with a custom layout. I wanted a gradient background, so in my UITableViewDelegate cellForRowAtIndexPath: method, I create a CAGradientLayer and add it to the cell's layer with insertSubLayer:atIndex: (using index 0). This works just fine except for two things:
Most importantly, I can't figure out how t...
My TableView crashes when i scroll it repetitatively and it contains 158 cells loaded at the same time.In each cell, I am adding two more labels like
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault r...
I am putting in a uitableview and I'd like to have each row divided into left and right. Sort of like this: http://blog.danilocampos.com/wp-content/uploads/2009/01/photo.jpg
Can someone explain how to do this?
Thanks.
...
I have UITableView with very large cells with lots of content (more than one screen height). I need to scroll UITableView to a certain position within those cells. I've found method scrollToRowAtIndexPath:atScrollPosition:animated: which works just fine if you got small cells (less than one screen), then you can just command UITableView ...
After going into Edit mode, moving a cell, and leaving edit mode, i am left with one extra cell sitting on top of its duplicate cell while still in edit mode.
The problem has to be somewhere in here:
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexP...
This is my program
- (void)viewDidLoad {
[super viewDidLoad];
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
self.title = @"Library";
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStyleBordered targ...
I have a MKMapView within a UITableviewCell and I want to be able to disable scrolling of the table view when the user starts to drag within the map view.
My plan had been to override the MKMapView touchesBegan/Moved etc methods and if they were called to then disable scrolling in the parent view. Scrolling in the parent view would be ...
Which is the detailTextLabel, and which is the textLabel? The small blue text or the larger black text?
I would like my textLabel (black text) to be right aligned, so i have tried this, but no success.
cell.textLabel.textAlignment = UITextAlignmentRight;
cell.detailTextLabel.textAlignment = UITextAlignmentRight; //tried this just in
...
I've created some custom UITableViewCells in a nib file and would like to use that across multiple UIViewControllers.
Can anyone tell me the best practice way to do that? My limited knowledge around loading nibs seems to suggest that you have to specify a single owner class in Interface Builder.
Thanks.
...