iOS - how do I create a “utility” class that all my controllers can call
问题 I am new to iOS and obective-c so I am not too sure how to best accomplish this seemingly simple task. What I want is to make a class that looks like this in pseudocode: class UtilityClass { // Have a method that I can pass parameters to String doCalculation ( String art1 , String arg2 ) { return arg1 + arg2; } } My uncertainty is: 1) xCode seems to be inclined to lay out my file structure in a relatively flat way. So should I make a utils directory and have this file be under utils/fileName