私の AppDelegete.m で、宣言しました。
+(AppDelegate*) sharedDelegate
{
return(AppDelegate*)[[UIApplication sharedApplication]delegate];
}
AppDelegate *appDelegate;
appDelegate=[AppDelegate sharedDelegate]; <= warning
しかし、
「Class method '+sharedDelegate' not found - return type defaults to id」という警告が表示されます。試してみましたが、修正されませんでした。
この警告を非表示にするにはどうすればよいですか?