ios - How to add the View below the TableView? -


how should add view (imageview) below uitableview?

and view can scrolled uitableview

because tableitem can expanded

you need implement uitableviewdelegate method

- (uiview *)tableview:(uitableview *)tableview viewforfooterinsection:(nsinteger)section 

and return desired view (e.g. uilabel text you'd in footer) appropriate section of table.

somewhat below.

- (cgfloat)tableview:(uitableview *)tableview heightforfooterinsection:(nsinteger)section {     return 30.0f; }  - (uiview *)tableview:(uitableview *)tableview viewforfooterinsection:(nsinteger)section {     uiview *sampleview = [[uiview alloc] init];     sampleview.frame = cgrectmake(x, y, width, height);     sampleview.backgroundcolor = [uicolor blackcolor];     return sampleview; } 

and include uitableviewdelegate protocol.

@interface testviewcontroller : uiviewcontroller <uitableviewdelegate> 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -