Iphone get photo resolution programmatically

There's a way to get programmatically the dimensions of a photo taken with an iphone? I want to take the dimensions directly without passing throught model version,so this solution can't be valid:

check model version->write a dictionary with dimensions of each iphone model -> take the correct index


When you take a picture, you get an UIImage.

UIImage objects have a -(CGSize)size method that returns the dimensions of the image in points. You should multiply it by it's scale property to get pixels.


ProTip: Read the documentation.

Need Your Help

Insert multiple rows with same unique ID

php mysql

I am inserting multiple rows using one query and, obviously, the ID column auto increments each row. I want to create another ID column and have the ID remain the same for all rows inserted during ...

programmatically close an Interstitial ad

android admob ads interstitial

I want to make sure that Interstitial ads on android using the android admob sdk, can be closed ?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.