Silenced warning of function override by category implementation, by surrounding with a clang pragma.

This commit is contained in:
Donald Alan Morrison 2012-08-20 14:08:49 -07:00
parent e6e0684ecb
commit cbeb2bb1b9
1 changed files with 3 additions and 1 deletions

View File

@ -38,12 +38,14 @@
@end
@implementation UIAccelerometer (Simulation)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"
// override the static method and return our simulated version instead
+ (UIAccelerometer *)sharedAccelerometer
{
return [AccelerometerSimulation getAccelerometer];
}
#pragma clang diagnostic pop
@end
/*
// callback that never got called with CFSocket UDP...