fbritop Active Member Licensed User Longtime User Dec 2, 2014 #1 Erel, How can we get the iPhone model? There are currently no methods available at UIDevice class on iOS. ("UIDevice").RunMethod("currentDevice", Null) https://developer.apple.com/library...ml#//apple_ref/occ/clm/UIDevice/currentDevice Thanks FBP
Erel, How can we get the iPhone model? There are currently no methods available at UIDevice class on iOS. ("UIDevice").RunMethod("currentDevice", Null) https://developer.apple.com/library...ml#//apple_ref/occ/clm/UIDevice/currentDevice Thanks FBP
Erel B4X founder Staff member Licensed User Longtime User Dec 2, 2014 #2 B4X: Dim device As NativeObject device = device.Initialize("UIDevice").RunMethod("currentDevice", null) Log(device.GetField("name").AsString) Log(device.GetField("model").AsString) Log(device.GetField("systemName").AsString) Upvote 0
B4X: Dim device As NativeObject device = device.Initialize("UIDevice").RunMethod("currentDevice", null) Log(device.GetField("name").AsString) Log(device.GetField("model").AsString) Log(device.GetField("systemName").AsString)
fbritop Active Member Licensed User Longtime User Dec 2, 2014 #3 Thanks Erel, I have read the docs @apple, but what I'm trying to figure out is the model version, either iPhone 4, 5 or 6. FBP Upvote 0
Thanks Erel, I have read the docs @apple, but what I'm trying to figure out is the model version, either iPhone 4, 5 or 6. FBP
Erel B4X founder Staff member Licensed User Longtime User Dec 3, 2014 #4 I don't see any property that returns this information. Why is it important? You can find the OS version with: App.OSVersion. Upvote 0
I don't see any property that returns this information. Why is it important? You can find the OS version with: App.OSVersion.