开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜