简体   繁体   中英

How to dynamicaly change Table height after binding in xamarin.ios

I am facing issue with xamarin.ios UI Design. I am trying to design, inside tableview different size of cell height .

How to calculate cell height based content . Pls reply ASPS

In your Table's Source class, use

public override float GetHeightForRow (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)

to determine the height of each cell. How you figure out how tall a cell should be will depend on the design of your cell and what data you're placing inside of it.

try like this

public override float GetHeightForRow(UITableView tableView, NSIndexPath indexPath)
    {


        return yourHeight;
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM