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 4540742
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:07:43+00:00 2026-05-21T15:07:43+00:00

I need some suggestions about UIActionSheet. In my case I have created an ActionSheet

  • 0

I need some suggestions about UIActionSheet. In my case I have created an ActionSheet in which I am displaying the UITableView with some data.

UIActionSheet *asheet = [[UIActionSheet alloc] init];
[asheet showInView:self.view]; 
[asheet setFrame:CGRectMake(0, 250, 320, 320)];


CustomView *innerView = [[CustomView alloc] initWithNibName:@"CustomView" bundle:nil];
innerView.view.frame = CGRectMake(0, 10, 320, 210);

[asheet addSubview:innerView.view];

the CustomView contains the table . Data is displaying properly, it displays exact 3 rows, now I want some similar functionality like :
(1) when I click on any row, the selected row should come at center.
(2) and where should I add buttons (done , cancel) in CustomView or in ActionSheet ?
(3) and how I get the selected row when I click on Done button?

any suggestions ?

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-21T15:07:44+00:00Added an answer on May 21, 2026 at 3:07 pm

    (1)

    when I click on any row, the selected row should come at center.

    Kindly provide me with more details on this issue i can’t get it right.

    (2)

    and where should I add buttons (done , cancel) in CustomView or in ActionSheet ?

    Add them in the UIActionSheet:

     UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self     cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:@"Destructive Button"     otherButtonTitles:@"Other Button 1", @"Other Button 2", nil];
     popupQuery.actionSheetStyle = UIActionSheetStyleBlackOpaque;
     [popupQuery showInView:self.view];
     [popupQuery release];
    

    (3)

    get the selected row when I click on Done button?

    NSIndexPath *indexPath = [MyTableView indexPathForSelectedRow] 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apologies if this has been asked before. I have some data which I need
I need some suggestions about how to generates a view where data comes from
Need some help about with Memcache. I have created a class and want to
I have this idea which I need some help with. Currently I am developing
I have been working on a chat application and I need some suggestions to
I need some advice about the design on my app. I have several screens
I need some advice for a design which I have to implement in application.
I need some asp.net pagination code samples. I would like suggestions on open source
Need some help, please. I have a line of horizontal thumbnails loaded as ONE
Need some help to solve this. I have a gridview and inside the gridview

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.