+ (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...
-
Function for getting hardware specific info such as CPU ID, Motherboard Serial Number, Drive Serial Numbers and MAC address . '*...
-
Excel 97 Excel 97-2003 Xls files with ACE OLEDB 12.0 You can use this connection string to use the Office 2007 OLEDB driver (ACE ...
-
Range Operators: Closed Range operators Half-Open Range Operators One-Sided Ranges Closed Range Operators: a...b It defines...
No comments:
Post a Comment