iphone - adding multiple icon footer to tableviewcontroller (one section) -
hi add multiple icon foot footer of uitableviewcontroller has single section in entirety.
how add this?
implement - (uiview *)tableview:(uitableview *)tableview viewforfooterinsection:(nsinteger)section
.
let return view, added icons.
- (uiview *)tableview:(uitableview *)tableview viewforfooterinsection:(nsinteger)section { uiview *view = [[uiview alloc] initwithframe:cgrectmake(0,0, tableview.frame.size.width,tableview.frame.height)]; uiimage *img = [uiimage imagenamed:@"nameofimage.png"]; uibutton *button = [uibutton buttonwithtype:uibuttontypecustom]; [button setbackgroundimage:img forstate:uicontrolstatenormal]; [button addtarget:self action:@selector(someselector:) forcontrolevents:uicontroleventtouchupinside] [view addsubview: button]; return [view autorelease] }
Comments
Post a Comment