相关疑难解决方法(0)

退出iPhone应用程序的正确方法?

我正在编写一个iPhone应用程序,我需要强制它退出,因为某些用户操作.清理内存后分配的应用程序,调用终止应用程序的适当方法是什么?

iphone cocoa-touch objective-c ipad ios

270
推荐指数
12
解决办法
23万
查看次数

使用Objective-C/Cocoa启动Mac应用程序

使用命令行启动Path Finder应用程序时,我会使用open -a Path Finder.app /Users/.基于这个想法,我使用以下代码来启动Path Finder.

我可以不使用open命令行启动应用程序吗?

NSTask *task;
task = [[NSTask alloc] init];
[task setLaunchPath: @"/usr/bin/open"];

NSArray *arguments;
arguments = [NSArray arrayWithObjects: @"-a", @"Path Finder.app", @"/Users/", nil];
[task setArguments: arguments];

NSPipe *pipe;
pipe = [NSPipe pipe];
[task setStandardOutput: pipe];

NSFileHandle *file;
file = [pipe fileHandleForReading];

[task launch];
Run Code Online (Sandbox Code Playgroud)

cocoa objective-c launching-application

8
推荐指数
1
解决办法
2万
查看次数

如何杀死Xamarin.Mac中的应用程序

我如何杀死xamarin.mac中的应用程序我无法找到this.disposeApplication.Exit在xamarinMac中如何杀死Xamarin Mac中的应用程序

monomac xamarin

5
推荐指数
2
解决办法
1496
查看次数