开发者

NSOpenPanel in iphone sdk

开发者 https://www.devze.com 2023-01-12 18:55 出处:网络
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

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

精彩评论

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