xcode學習:小技巧積累

一、獲取全局的Delegate對象,這樣咱們能夠調用這個對象裏的方法和變量:app [(MyAppDelegate*)[[UIApplication sharedApplication] delegate] MyMethodOrMyVariable];框架 二、得到程序的主Bundle:工具 NSBundle *bundle = [NSBundle mainBundle];字體 Bundle能夠理
相關文章
相關標籤/搜索