- (void)applicationDidFinishLaunching:(UIApplication *)applicationThere are several ways to ignore warnings, I found #pragma to be a clean solution.
{
#pragma unused(application)
[window addSubview:viewController.view];
[window makeKeyAndVisible];
}
Thursday, August 26, 2010
How to Remove Unused Parameter Warning
No Warnings Policy requires sometimes forcing a compiler warning to be ignored. One such case is when you are given a function you absolutely must use, but don't need the parameters:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment