0
我有一些代码需要运行iPhone。不过我想在模拟器上测试我的应用程序。在iPhone上我用这个返回值:返回值对于模拟器上的NSDictionary,iPhone
return [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:-1], @"number"];
我正在寻找这样的事情,我认为:
- (NSDictionary *) data
{
#if TARGET_IPHONE_SIMULATOR
something in here to return a value of 70;
#else .....
我想在模拟器使用返回值70。
有人能帮我一下吗?