iphone/ios开发 app 重启
热更新完后,需要马上让资源图片UI等 看到效果,所以需要让APP重启?
只找到 mac应用下的 NSWorkspace API?
[NSApp terminate:self];
NSString *bundleIdentifier = [[NSBundle mainBundle]bundleIdentifier];
[[NSWorkspace sharedWorkspace] launchAppWithBundleIdentifier:bundleIdentifier options:NSWorkspaceLaunchAsync | NSWorkspaceLaunchNewInstance additionalEventParamDescriptor:nil launchIdentifier:NULL];
1.本人iso开发小白,请问各位大神:对于iphone / iOS等效的[[NSWorkspace sharedWorkspace]有接口吗?
2.请问还有什么方法 可以调用代码 重启APP? 让APP 自启动。
不吝请教 感谢万分!