Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 QuestionData 中有 getQuestions 方法,如以下签名我希望用户可以在除 appDelagate 之外的其他类中调用此函数如何调用它,因为 getDBPath 在 appDelegate 中声明。
如何在任何其他类中访问此方法
[QuestionData getQuestions:[self getDBPath]]; + (void)getQuestions:(NSString*)dbPath{