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;
精彩评论