Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 617891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:29:05+00:00 2026-05-13T18:29:05+00:00

I am working on an in app purchase app. I would like fill a

  • 0

I am working on an in app purchase app. I would like fill a table view with a list of products,
and put a BUY button on the right hand side of each entry. Does anyone have the UITableView – fu necessary to do this?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:29:05+00:00Added an answer on May 13, 2026 at 6:29 pm

    Create a custom class that extends UITableViewCell

    @interface CustomTblCell : UITableViewCell
    

    In the corresponding NIB CustomTblCell.xib drag and drop UILabel and UIButton elements (side-by-side).

    Finally, in your method -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath initialize and return the CustomTblCell

    Hope this helps!

    Here is a code snippet for the cellForRowAtIndexPath: method I mentioned above

    -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
        static NSString *CustomCellIdentifier = @"customCellIndentifier";
    
        CustomTblCell *cell = (CustomTblCell *)[tableView dequeueReusableCellWithIdentifier:CustomCellIdentifier];
        if(cell == nil){
            NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomTblCell" owner:self options:nil];
            cell = [nib objectAtIndex:0];
        }
    
        cell.label.text = @"My Product";
        return cell;
    }
    

    If you have many rows in your table such that the user has to scroll through the table use ‘dequeueReusableCellWithIdentifier`. This optimizes the code to reuse the same customTblCell object which is now not in user view. The deque method takes a String as input arg (customTableCellIdentifier). Make sure this matches the Identifier string you specify in the IB while creating the CustomTblCell

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to put In App purchase in my application. I had setup
My Application is live on app store and working In App Purchase. In App
My in-app purchase was working fine till Wednesday. But yesterday onwards when am clicking
I just integrated the Apple's In-App purchase into my application with 4 products. It
I am working on in-app purchase. In my application we added the following code
I have implemented In App Purchase in one of the existing application, it's working
I am working to implement in-app purchase for a project and everything went well
I have my (sandbox) In App Purchase working, but how do I determine if
I have developed iphone app with working In App Purchase. Now I want to
I am working on Google In-app purchase for an app. I have created a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.