Showing posts with label iOS7 UITableView. Show all posts
Showing posts with label iOS7 UITableView. Show all posts

Tuesday, 29 December 2015

Load custom cell(Xib) in UITableView in swift


Load custom cell(Xib) in UITableView in swift.jpg
if you would like to Load custom cell(Xib) in UITableView in swift ,you may use the following code ->
  1. func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  2.       return array.count;   //This function returns number of rows in table view
  3.   }


  4. func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
Read more about Load Custom Cell in UITableView in Swift at findnerd. You can also learn much more about different programming technologies such as C, Java, PHP, Javascript, iPhone, android questions and answers etc and can also enhance your tech skills.


Tuesday, 23 June 2015

How to use UISearchBar with TableView in iOS

If we have a huge list of items and want to search a item from the list then we use the UISearchBar with TableView and the item will be displayed in the table which have the matching value with the search text .
Here are the steps:
Step1: Add UITableView to the main.storyboard.
Step2: set the delegate and dataSource for the tableView
Step3: Create the outlet for tableView with following Syntax __weak IBOutlet UITableView *myTableView;
To Read complete information about “UISearchBar with TableView in iOS” visit FindNerd . Apart from this ,you can also ask questions & look for various programming queries along with their solutions including android, c,java,php programming questions and answers etc.as it is an effective technology forum also.