簡體   English   中英

使用我的應用程序的mgtwitter引擎時出現一個錯誤

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

我在我的appcontroller中在此函數中使用NSImage出現了錯誤,就像在NSImage之前的預期')'一樣。

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

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

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

我檢查了我的程序,沒有語法錯誤,但我的應用程序中仍然有此錯誤。 我已經從mgtwitterengine中獲取了代碼,並將其用於我的應用程序中的iphone,如其自述文件所述。

NSImage是Cocoa中AppKit框架的一部分,因此它在iPhone上不可用。 您將需要處理UIImage ,它來自Cocoa Touch中的UIKit框架。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM