Add action on UITableView Scroll

Monday, 19 August 2013 by

UITableView is a subclass of UIScrollView, which allows users to scroll through the table, although UITableView allows vertical scrolling only.  To load and show more content in a table view when the UITableView did scroll to bottom write the following method-       MettleTech BlogUSA info@mettletech.in

Create Editable UITableView

Wednesday, 14 August 2013 by

A table view has an editing mode as well as its normal (selection) mode. When a table view goes into editing mode, it displays the editing and reordering controls associated with its rows. The editing controls, which are in the left side of the row, allow the user to insert and delete rows in the

Create UITableView Like iphone settings

Wednesday, 14 August 2013 by

Settings application of iPhone have grouped tables. Table views can have one of two styles, UITableViewStylePlain and UITableViewStyleGrouped. When you create a UITableView instance you must specify a table style, and this style cannot be changed. The grouped style of table view provides a default background color and a default background view for all cells. The

Index Path of UITableviewCell can be calculated from outside of UITableviewCell also. Here we are showing the calculation of index path from ‘on tap method’ of a UIButton which is a subview of the UITableviewCell. First of all create UITableview and add a UIButton to each UITableviewCell. Write the following code inside the on tap method of the UIButton.

UITableViewCell can be customized by adding UILabels or UIButtons within it. To define a custom cell without using any xib write the following code in  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath method-       To add a UILabel and a UIButton to your custom cell write the following code-      

UITableviewCell Selection Style

Wednesday, 07 August 2013 by

UITableviewCell Selection Style can be customized by adding the following code in (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath method -

UITableView Cell Selection

Wednesday, 07 August 2013 by

Each row of of a UITableView is represented by a UITableViewCell. A particular row or a UITableViewCell can be selected from multiple cells of a UITableView. To add action on selection of a row or cell, write the following method-

UITableView Multiple Section

Wednesday, 07 August 2013 by

UITableView default number of Section is one. But multiple sections can be created in a single UITableView. To achieve this add the following method- Each section can have different number of rows. This can be done by editing the following method like given below-  

UITableView Fixed Footer

Wednesday, 07 August 2013 by

Footer is a fixed part of UITableView that can not be scrolled like Header. We can add footer of each section or for a particular section of UITableView. It is shown at the bottom of the table. Any other UIView, UILabel, UIButton,UIImageView etc. can be added as subview of it.  

UITableView is a subclass of UIScrollView, which allows users to scroll through the table, although UITableView allows vertical scrolling only. The cells comprising the individual items of the table are UITableView objects; UITableView uses these objects to draw the visible rows of the table. Cells have content—titles and images etc. Here we are describing how to

TOP