IOS UITableview in Storyboard cell's elements frame size and height shows zero -


i creating tableview , creating cells follows

static nsstring *cellidentifier = @"raffel"; uitableviewcell *cell = [tableview dequeuereusablecellwithidentifier:cellidentifier forindexpath:indexpath]; uiview *imv=(uiview*)[cell viewwithtag:100]; uilabel *title=(uilabel*)[cell viewwithtag:101]; uitextview *ticketdetails=(uitextview*)[cell viewwithtag:102]; uilabel *bdprice=(uilabel*)[cell viewwithtag:103]; uilabel *usdprice=(uilabel*)[cell viewwithtag:104]; uilabel *tickrema=(uilabel*)[cell viewwithtag:105];  nslog(@"fram %@",imv); 

and log shows

fram <uiview: 0x1ed91bd0; frame = (0 171; 0 0); autoresize = tm+bm; tag = 100; layer = <calayer: 0x1ed91c30>> 

it shows 0 height , width actuall height*width 100*100

implement this method in code..

- (cgfloat) tableview: (uitableview *) tableview heightforrowatindexpath: (nsindexpath *) indexpath {    return 100; } 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -