Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

loon3y

macrumors 65816
Original poster
Oct 21, 2011
1,235
126
basically, i have this problem for the new version of my app.


basically before, on my view controller for the iphone 4 version i had a product name and short description on a "custom bar", and when u tapped it it brought the bar up and it brought up a "long html description".



now since the iphone 5 came out, theres extra real estate, so theres no need for that function, i can just have the "long description" just appear.

heres some screen shots



bgp9g1.jpg




73nqtu.png

but i need to disable the tap function for iphone 5's only. is this possible? in anyway shape or form?
 
Last edited:
Just check how much height your view has available, and make your decision based on that. This approach is more robust than identifying the device model. For example:

Code:
CGRect bounds = self.view.window.bounds;
if (bounds.size.height <= 480) {
  // ... enable "tap to view long description" feature ...
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.