Friday, August 12, 2011

Determine device (iPhone, iPod Touch) with iPhone SDK

NSString *deviceType = [UIDevice currentDevice].model;

if([deviceType isEqualToString:@"iPhone"])

// it is iphone
// similarly we can also check iPad,iPod, and simulator.

No comments:

Create a list in SwiftUI with sticky section headers

 Sample Code import SwiftUI struct ContentView : View {     @State var isCustomViewControllerDisplayed = false     @State private va...