且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在程序启动时运行代码

更新时间:2023-01-30 10:54:57

好然后在statup上运行它。...

Ok, if you want to run it on statup then....

-(BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

这在应用程序委托中。...不确定为什么您将要执行此操作,还是Apple是否会批准这样的应用程序...?

This is in the App Delegate....not sure why you would want to do this or whether Apple would even approve such an app...?

如果要显示Web内容,则可以使用UIWebview并加载该网址....

If you want to show web content then you can use a UIWebview and load the URL into that....