Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I already implement this please look this here is my code</p> <pre><code>- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { if(footerView == nil) { footerView = [[UIView alloc] init]; CGRect screenBounds = [[UIScreen mainScreen] bounds]; if (ObjApp.checkDevice == 1) { UIImage *image = [[UIImage imageNamed:@"LoadMoreBtn.png"] stretchableImageWithLeftCapWidth:8 topCapHeight:8]; btnLoadMore = [UIButton buttonWithType:UIButtonTypeCustom]; [btnLoadMore setBackgroundImage:image forState:UIControlStateNormal]; if(screenBounds.size.height == 568) { // iPhone 5 [btnLoadMore setFrame:CGRectMake(74, 13, 148, 34)]; } else { // iPohne 4 and Older iPhones [btnLoadMore setFrame:CGRectMake(74, 13, 148, 34)]; } } else if (ObjApp.checkDevice == 2) { UIImage *image = [[UIImage imageNamed:@"LoadMoreBtn_iPad.png"] stretchableImageWithLeftCapWidth:8 topCapHeight:8]; btnLoadMore = [UIButton buttonWithType:UIButtonTypeCustom]; [btnLoadMore setBackgroundImage:image forState:UIControlStateNormal]; [btnLoadMore setFrame:CGRectMake(220, 26, 296, 67)]; } [btnLoadMore.titleLabel setFont:[UIFont boldSystemFontOfSize:20]]; [btnLoadMore setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [btnLoadMore addTarget:self action:@selector(btnLoadmore_clicked:) forControlEvents:UIControlEventTouchUpInside]; [footerView addSubview:btnLoadMore]; } return footerView; } - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { if (ObjApp.checkDevice == 1) { return 47; } else { return 100; } return 0; } #pragma mark - Button Click Methods -(void)btnLoadmore_clicked:(id)sender { if(page &gt; 0) { sendpage++; if(sendpage&lt;= page) { [self loading]; NSString *urlString = [NSString stringWithFormat:@"data={\"name\":\"%@\",\"lat\":\"%f\",\"page\":\"%d\",\"long\":\"%f\"}",txtSearchFld.text,ObjApp.current_Latitude,sendpage,ObjApp.current_Longitude]; [WebAPIRequest WS_Search:self :urlString]; CGFloat height = tblSearchResult.contentSize.height - tblSearchResult.bounds.size.height; [tblSearchResult setContentOffset:CGPointMake(0, height) animated:YES]; } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload