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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:17:01+00:00 2026-06-14T13:17:01+00:00

I have created a UIView called ImageShowcase which has a UIScrollView and then i

  • 0

I have created a UIView called ImageShowcase which has a UIScrollView and then i am adding UIButton inherited class call ImageShowcaseCell. Its working fine. One thing i am puzzled about is what is the best way to handle actions in a view controller where i have added ImageShowCase currently when i can handle UIControlEventTouchUpInside action in UIButton inherited class ImageShowcaseCell but i want to handle it in View Controller so that i can perform appropriate action.

What would be the best way to achieve this.

  • 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-06-14T13:17:03+00:00Added an answer on June 14, 2026 at 1:17 pm

    In your custom ImageShowcaseCell class, you can send the action up the responder chain and allow the view controller to handle it:

    [[UIApplication sharedApplication] sendAction:@selector(someMethodOnMyViewController:) to:nil from:self forEvent:nil];
    

    Alternatively you could possibly also use:

    1. delegate pattern – set your view controller as a delegate for your ImageShowcaseCell.
    2. create a block based method in your custom class to execute the block after a touch.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have created a custom view class which is a subclass of UIview class
I have a class called ToolbarView which is a subclass of UIView and basically
In my program, I have a class called Object, which inherits from UIView. I
I have a class called ToolbarView which is a subclass of UIView and basically
I am new to iphone development.I have created a UIview controller class and added
I have a class called ActorController and it has a NIB file. I have
I have a UIView which has a UITabBar with 4 UITabBarItem components in it
I have a UIViewController class where I create a UIView instance. And then I
In my UIView, I've created a UIImageView called targetView where I have set it
Say I have a subclass of UIView which I will call AnimatableView , where

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.