开发者

how to use variable that declared in classname.m to that particular classnameviewcontroller.m

开发者 https://www.devze.com 2023-01-10 00:59 出处:网络
hi i am new to iphone development. what i did is i am creating a class named imagepicker.h along with imagepicker.m,for that classes i am creating imagepickerviewcontroller.h and imagepickervie开发者_

hi i am new to iphone development. what i did is i am creating a class named imagepicker.h along with imagepicker.m,for that classes i am creating imagepickerviewcontroller.h and imagepickervie开发者_如何学Gowcontroller.m.... in the imagepicker.m i am declring a button for that button assing a image tag value. "now what i need is how to get that buttion.tag value to imagepickerviewcontroller.m" please help me thanku


Declare the button in your imagepicker.h, make it a property and access it in you view controller by creating an object ob imagepicker class. imagepickerobject.button.tag

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号