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 5、iPhone 6、iPhone 6+ を検出する方法はありますか?
以前は、解像度に基づいてそれを行いました:
if ([[UIScreen mainScreen] bounds].size == 568) NSLog(@"4 inch"); else NSLog(@"3.5 inch");
しかし、今ではすべての解像度 (4、4.7、5.5) で同じ 568 の高さが得られます。それで、私は何をすべきですか?