如何在applicationDidFinishLaunching中调用[MKStoreManager sharedStorageManager]
答案 0 :(得分:2)
您只需在应用程序委托文件顶部导入MKStoreManager.h,其中applicationDidFinishLaunching是,然后在applicationDidFinishLaunching中,添加[MKStoreManager sharedManager],初始化它并启动它
...假设您已经填写了MkStoreManager / Observer.h文件中的必要信息
#import "MKStoreManager.h"
- (void) applicationDidFinishLaunching {
/* ...other code you want performed...*/
[MKStoreManager sharedManager];
}
注意:我写的applicationDidFinishLaunching的函数头可能不完整,这意味着可能有一个参数...在api中查找,或者让xcode自动为你填充