Tag: uitableview

Alphabetical plist with name and description numberOfRowsInSection issues

So, I have a plist that describes multiple cuisines. In my plist, I have 26 arrays, each with a key of a letter of the alphabet. In those arrays, contain multiple cuisines, which are dictionaries. In every dictionary are 2 strings, one for the name of the cuisine and the other for the description of […]

iOS 8 Self Sizing Cells – Allow Zero Height

I am using the self sizing cell feature and it works well until I want to hide a cell completely. I moved away from heightForRowAtIndexPath for this and I setup the following: override func viewDidLoad() { self.tableView.rowHeight = UITableViewAutomaticDimension self.tableView.estimatedRowHeight = 0 } However when I have no text for a tableviewcell to render I […]

Keyboard does not appear in the UIWebView on the UINavigationController

I have a UIWebView in UINavigationController. I have a TableView, When the clicks cell of the table, it goes to WebView, but when user clicks textfield in webview, keyboard will does not show up. Why does not show up? Which part of code is required? This code is part of the transition to UIWebView below. […]

custom cell not appear in tableview

I use storyboards. I create new class for my Cell, in storyboard I write in Reuse Identifier “userFullCell”. My Cell class .h #import <UIKit/UIKit.h> @interface UsefullLinksCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *image; @property (weak, nonatomic) IBOutlet UILabel *shortTitle; @end .m default #import “UsefullLinksCell.h” @implementation UsefullLinksCell – (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super […]

Pass variable to a detail view controller using a table in UIViewController (not UITableViewController!!)

I currently have 2 view controllers: ViewController and DetailViewController. Neither of them are Table View Controllers, they are both just View Controllers. However, I do have a table on ViewController which is otherwise working great. I want to segue/pass a variable to DetailViewController when a cell is selected. Using the storyboard I set up a […]

UITableView + Core Animation

I would like to build up a table view section into my iOS app just like the Facebook style (with many information in every row, images and buttons, ..). I also want to include Core Animation effects on every row, like fade out the cell, or customize the graphic interface. Do you recommend me to […]

dynamically size the height of the tableView cells

I am able to display the cell content in the table and also Wordwrap it to display the message entirely. But I noticed that if the content is more than the height than it becomes clumpsy. How do I increase the heighten a cell dynamically if the content is too large. Since I am retrieving […]

How to enable void “didSelectRowAtIndexPath” and disable it?

I search didSelectRowAtIndexPath this key word And found most problem is how to trigger it But my question is how to enable it with another conditions You can check my last question here – How to add a radio button in tableview how To disable this void when the radio button is not selected ??? […]

Insert new row in UITableView when tapping first row

I’m new to iOS development. Therefore it would be nice if your answer could be as detailed as possible. My problem is the following: I want the cell in my second section to always say “add new row”. If you click this cell a new row should be added on top. My current code is […]

How to select Multiple rows in UITableView?

I want multiple selection in UITableView and also its data into one array or in one dictionary…