UITableView heightForRowAtIndexPath

Ads
 

UITableView heightForRowAtIndexPath

Hi,

How to write method for UITableView heightForRowAtIndexPath?

Thanks

View Answers

January 23, 2011 at 7:01 PM

Hi,

Here is the code example:

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    //for hight
    if (indexPath.row==0) {
        return 70;
    }else {
        return 30;
    }
}

Thanks


January 24, 2011 at 3:48 PM

Hi,

With the help of above code you can set the hight of your table cell.

Thanks


January 24, 2011 at 3:48 PM

Hi,

With the help of above code you can set the hight of your table cell.

Thanks

Ads









Related Tutorials/Questions & Answers:
UITableView heightForRowAtIndexPath
UITableView heightForRowAtIndexPath  Hi, How to write method for UITableView heightForRowAtIndexPath? Thanks   Hi, Here is the code example: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath
heightForRowAtIndexPath example
heightForRowAtIndexPath example  Hi, Give me code for heightForRowAtIndexPath example? Thanks   Hi, Please check the thread UITableView heightForRowAtIndexPath. Thanks
Advertisements
UITableView Array
UITableView Array  Somehow, in my iPhone application.. i am not able to add an array in UITableview. Can anyone please explain about the possible... in section" method as given below.. - (NSInteger)tableView:(UITableView *)tableView
Disable UITableView Scrolling
Disable UITableView Scrolling   How to disable the UITableView Scrolling either programmatically or in XIB
UITableView Background Image
UITableView Background Image  How to set an image as a background of UITableView in iPhone SDK   I think, we can't
UITableView alloc and deallocating
UITableView alloc and deallocating  Hi, just wondering how to manage the alloc and dealloc methods for UITableView in my table view application. Thanks
UITableview show more
UITableview show more  How to fetch more records from the sql database in UITableview using show more option when there is a large amount of data? Thanks
Custom Cell View UITableview
Custom Cell View UITableview  How can i get two custom cell view in UITableView
uitableview inside uiviewcontroller
uitableview inside uiviewcontroller  How to insert a table view...)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection
uitableview manually delete row
uitableview manually delete row  uitableview manually delete row   NSMutableIndexSet *indexes = [NSMutableIndexSet indexSet]; [array removeObjectAtIndex:indexPath.row]; if(![array count]) [indexes addIndex
uitableview edit done button
uitableview edit done button  How to add Edit / Done button in UITableView with an action on click?   UITableview Edit done Button To add " Edit / Done button " in UITableView add the given code in UIView Controller
How to write method for UITableView didSelectRowAtIndexPath?
How to write method for UITableView didSelectRowAtIndexPath?  Hi, Please tell me how to write method for UITableView didSelectRowAtIndexPath? Thanks   HI, Here is the code: -(void)tableView:(UITableView *)tableView
Height for cell in table view - UITableView
Height for cell in table view - UITableView  UITableview height for cell What is the height for cell in table view iPhone mobile application
Setting a Background image for UITableView in iPhone & iPad application.
Setting a Background image for UITableView in iPhone & iPad application.  in my iPhone application i am using a simple UITableView to show... the UITableView using set backgroundcolor. But my requirement is bit different ..i wanted
UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath
UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath  HI, What is the solution of UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath error? Thanks
uitableviewcell margin
uitableviewcell margin  How to add the desired margin to UITableViewCell in iPhone application?    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell
UITextview inside UITableviewcell
;uitableviewcell textlabel height - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 70
nsdragoperation tableview
nsdragoperation tableview  nsdragoperation for IBAction or UITableView
nsdragoperation tableview
nsdragoperation tableview  nsdragoperation for IBAction or UITableView
sorting and storing data
sorting and storing data   sorting and storing data in UITableView
didSelectRowAtIndexPath deselect row
didSelectRowAtIndexPath deselect row  Hi, In my UITableView application when user taps a row, how to deselect row? Thanks
pushing UITableViewController
UITableView. I wanted to open another view on clicking Table cell view?   - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath...:YES]; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection
highlight uitableviewcell on selection
Style You can change the UITableView Cell stye in several ways. You can either highlight it or use the default selection for the cell in UITableView. Also you can
Custom UITableViewCell Example
Custom UITableViewCell Example   Hi all, In my iPhone UITableView application.. we need a custom cell as per our project requirement. So can anyone give me an example of UITableViewCell that suggest how to change Height, Border
How to implement xml parsing in iphone ? -RV
;{ IBOutlet UITableView *page1; NSMutableArray *titlearray...:(UITableView *)tableView { return 1; } // Customize the number of rows in the table view. - (NSInteger)tableView:(UITableView *)tableView
UITableViewCell Wrap Text - an Example
the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView

Ads