I want to use a UITableView for my settings screen. So that my settings view will look like apple does it, with a group table view, and then the UI elements to let you change settings.
So, it does not seem like the cells are loaded from an array, but seems like each one is customized.
Ideas on how to do this?
...
hello genius and nerds
I have a TableViewCell with a UISwitch in accessoryView. I don't want that blue background if someone selected it. There fore i used
cell.userInteractionEnabled = NO;
but then the whole cell isnt accessable so i tried that
cell.userInteractionEnabled = NO;
cell.accessoryView.userInteractionEnabled = YES;
i t...
I need 8 rows with a UILabel, UITextField and UISwitch in each row. the Last 2 rows does not contain the UITextField. This is not working for me and not able to determine switch and textfield for a partcular row. When switch is on, textfield value must be saved with it. Please see code below and help!!!:
After visible rows Switch value ...
Hello everyone. I created a bunch of editable UITableViewCell by embedding an UITextField inside, but I have seen some apps that allows you to scroll the UItableview by scrolling inside an inactive editable cell. How can I do that? And how can I also dismiss the keyboard when tapping somewhere else? I know about the method:
- (void)touc...
Hi guys,
Little background, the table view is filled by a fetchedResultsController which fills the table view with Strings. Now I'm trying to add a button next to each String in each tableview cell. So far, I've been trying to create a button in my configureCell:atIndexPath method and then add that button as a subview to the table cell'...
I have a tableview with cells that have a scrollview in them. The scrollview is paged, 2 pages to be exact, and is meant to be able to quickly compare two small blocks of text.
I'm trying to find a way to remember what the content offset of the scrollview is. Cell reuse is killing me.
I've tried resetting the offset in prepareForReuse ...
I'm trying to add a subview to a UITableViewCell and the design that I'm working from demands that this particular subview (an image) needs to be larger than the actual UITableViewCell and thus partly overlap its siblings.
So I've set up my table cell, generated my image and added it to the cell's contentView:
// rowHeight for the UITa...
Hello,
Since I had a very slow scrolling tableView I'm now trying to catch up with the direct draw method, similiar to the Tweetie App sample or Apples TableViewSuite code.
So right now I'm struggling to draw NSString with more than one line.
I'm using the [NSString drawAtPoint: forWidth: withFont: linebreakMode:] method, and it "brea...
So this is an interesting problem. I have custom tableviewcells that include a text field. When In my cellForRowAtIndexPath I have an if statement that determines whether or not the cell's text field should be editable- it looks like this:
(self.isEditing) ? [infoCell.textField setEnabled:YES] : [infoCell.textField setEnabled:NO];
Thi...
Hello. I have a custom cell and when the user selects that cell, I would like the text in the two UILabels to change to light gray.
ChecklistCell.h:
#import <UIKit/UIKit.h>
@interface ChecklistCell : UITableViewCell {
UILabel *nameLabel;
UILabel *colorLabel;
BOOL selected;
}
@property (nonatomic, retain) IBOutlet UILa...
Hi all,
In my aplication, I want a tableview with different cell structure depending upon the category of data that's getting loaded in it [I have different categories like video, editorial etc with different structure of data like video has a single label, editorial has 3 labels etc]. I can load different nib files based on the data co...
I have a table view where each cell has a button accessory view. The table is managed by a fatchedresults controller and is frequently reordered. I want to be able to press a button and be able to obtain the index path of the pressed button's tableviewcell. I've been trying to get this working for days by storing the row of the button in...
Hi all,
In my application,I need to load different .xib in different tableView cells depending upon the category of data which I'm getting from parser. I wanted to ask that is it possible to create different .xibs belonging to same class as it'll reduce the load as I have almost 13 categories so 13 .xib files.
Thanks in advance.
...
I have a table view with a list of categories and each category (understand table cell) has a different icon.
I would like to use one big image (sprite) and render different part of the image (single icon) for each row.
Any efficient ideas...
...
Hello,
I would like to imitate a behavior like the one that is in the apple calendar when selecting a date for an event. You have a TableView with to cells and a datepicker. If the first cell is selected the date of the picker is for start date and the opposite for end date.
So, my question is: how do I Know, when handling the date ch...
Hey
I am writing a program, and one part of my program has a UItableView in which I set cell contents manually by using the following...
cell.textLabel.text = @"CELL CONTENTS HERE!";
How can I copy a string displayed in a particular TableView Cell into another NSString?
...
I've got a table with custom cells brought in from an IB file. Cell is created like this:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *MyIdentifier = @"MyIdentifier";
MyIdentifier = @"BasicCell";
BasicCell *cell = (BasicCell *)[tableView dequeueR...
I'm trying to change the custom accessoryView of a uitableviewcell immediately after the user clicks on the cell. How would I do this?
For the record, I'm using Matt Gallagher' custom table view tutorial:
http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html
Download link for source: http://projectswithlove.com/project...
I want my accessory to be in a slightly different place than normal. Is it possible?
This code has no effect:
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
cell.accessoryView.frame = CGRectMake(5.0, 5.0, 5.0, 5.0);
...
What I am trying to do: I want three buttons side-by-side in a tableviewcell just like in Contacts app.
What I've done: I have a custom tableviewcell with three uibuttons in it. I've set the background color of the tableviewcell to be transparent.
What I can't figure out: The tableviewcell border is still there! Everything looks great ...