Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个大约两年前的 iPhone 应用程序。现在我尝试让这个应用程序与 iPhone 5 兼容,但它产生了一个问题。我无法检测到触摸或点击为 iphone 5 添加的额外下部。我没有以编程方式创建视图。我只使用界面生成器。谁能帮我解决这个问题?
applicationDidFinishLanuching:尝试在您的方法中添加这行代码:
applicationDidFinishLanuching:
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; self.window.rootViewController = viewController; [self.window makeKeyAndVisible];