开发者

How to call void function in other class?

I want to call one vo开发者_如何学JAVAid function into many view controllers so how can i do it? please suggest me some idea.


I think you talking about static function.you have to declare and define that function as static , then you can use that void function without initializing the class in any view contorller. And also declare that static function as public.

static function declaration is this +(void)functionName:(parametertype)parameter;

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜