开发者

NSOpenPanel in iphone sdk

I am trying to follow apples XMLParsing for the iphone SDK, but getting in a right muddle around this NSOpenPanel. It appears to be in the mac os framework, but how can i use it as it suggests int he dev centre for the iphone? Any suggesti开发者_运维技巧on welcome...


It's not available on the iOS Platform. And there's no dialog to select files on iOS devices.

Available in Mac OS X v10.0 and later.

You can open files like this:

NSString *docDir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString *jpegFilePath = [NSString stringWithFormat:@"%@/%@",docDir, user.picture];
UIImage *userImage = [UIImage imageWithContentsOfFile:jpegFilePath];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜