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

Like UIColor you can set gradient color to UITableviewCell background. Gradient Color is a combination of two different UIColor. This can be done using layers. So first of all we need to import Quartzcore Frame work. then you have to create a NSObject type class where CAGradientLayer must be created using different UIColors. Then import this

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.