On Friday, September 5, 2014, bigpig <bigpig1...@gmail.com> 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 (Cocoa-dev@lists.apple.com <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:
> https://lists.apple.com/mailman/options/cocoa-dev/sevenbitstech%40gmail.com
>
> This email sent to sevenbitst...@gmail.com <javascript:;>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to