开发者

I am getting one error while using the mgtwitter engine my app

开发者 https://www.devze.com 2022-12-17 13:26 出处:网络
I am getting the error for using the NSImage in this function in m开发者_开发问答y appcontroller

I am getting the error for using the NSImage in this function in m开发者_开发问答y appcontroller like expected ')' before NSImage.

- (void)imageReceived:(NSImage *)image forRequest:(NSString *)identifier
{

    NSString *path = [[NSString stringWithFormat:@"~/Desktop/%@.tiff", identifier] 
                      stringByExpandingTildeInPath];

   [[image TIFFRepresentation] writeToFile:path atomically:NO];
}

i have check my program i got no syntax error but still i have this error in my app. i have taken the code from mgtwitterengine and using it for iphone in my app as given in its read me file.


NSImage is not available on the iPhone since it is part of the AppKit framework in Cocoa. You will need to deal with UIImage instead, which is from the UIKit framework in Cocoa Touch.

0

精彩评论

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

关注公众号