• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: button in the class which inherit from UIView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: button in the class which inherit from UIView


  • Subject: Re: button in the class which inherit from UIView
  • From: SevenBits <email@hidden>
  • Date: Fri, 05 Sep 2014 07:15:33 -0400

On Friday, September 5, 2014, bigpig <email@hidden> wrote:

> I wirte a class which inherit from UIView to show the view.This view
> include a button.And how can i implement the respond method of this
> button.UIView class can’t respond button respond method.


To do it programmatically, you call -setAction: on the desired button and
pass to that function the selector of the method to call when it is pressed.

I suggest that you check out a tutorial on the basics of Cocoa and iOS
development before moving forward.


> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden <javascript:;>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden <javascript:;>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >button in the class which inherit from UIView (From: bigpig <email@hidden>)

  • Prev by Date: Re: Checking security settings?
  • Next by Date: Re: Checking security settings?
  • Previous by thread: button in the class which inherit from UIView
  • Next by thread: dispatch_sync(dispatch_get_main_queue() UI weirdness
  • Index(es):
    • Date
    • Thread