Re: button in the class which inherit from UIView
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