Breaking News
Home / iOS / iOS Snippets / How to detect if the device is iPad?

How to detect if the device is iPad?

Answer

Device detection for iPad is easy. Just call this function as shown below.

  1. +(BOOL) isPad
  2. {
  3.     return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);
  4. }
[pb_builder]

Check Also

EKCalendar – That account does not allow calendars to be added or removed

Usecase When I am trying to create a new Calendar programmatically using the EventKit API …

Advertisment ad adsense adlogger