+ (BOOL) isRetinaDisplay { int scale = 1.0; UIScreen *screen = [UIScreen mainScreen]; if([screen respondsToSelector:@selector(scale)]) scale = screen.scale; if(scale == 2.0f) return YES; else return NO; }
Subscribe to:
Post Comments (Atom)
Create a list in SwiftUI with sticky section headers
Sample Code import SwiftUI struct ContentView : View { @State var isCustomViewControllerDisplayed = false @State private va...
-
Sample Code import SwiftUI struct ContentView : View { @State var isCustomViewControllerDisplayed = false @State private va...
-
#import < CoreTelephony/CTCarrier.h > #import < CoreTelephony/CTTelephonyNetworkInfo.h > // Setup the Network Info and crea...
-
When you first start out programming iOS application, you’ll most likely notice the continued use of “delegates” throughout the SDK. The ...
No comments:
Post a Comment