xcode学习:小技巧积累

一、获取全局的Delegate对象,这样咱们能够调用这个对象里的方法和变量:app [(MyAppDelegate*)[[UIApplication sharedApplication] delegate] MyMethodOrMyVariable];框架 二、得到程序的主Bundle:工具 NSBundle *bundle = [NSBundle mainBundle];字体 Bundle能够理
相关文章
相关标签/搜索