Reputation: 1773
Not sure if this is possible, I have an application with a support page. This gives the user option to mail me direct from within the application, it opens up mail.app when called.
Is it possible to preset the body of the composed email to display the device type and iOS version that the user is running? I am using this code to predefine the body of the email;
NSString *emailBody = @"Can This Be Changed To Display Users Device & iOS version";
[picker setMessageBody:emailBody isHTML:NO];
The above code works fine and does populate the body field but wondered if you can display device type, i.e iPhone 4, 3GS etc
Thanks
Upvotes: 0
Views: 209
Reputation: 3754
To get the device UDID use the code:
valueudid= [[UIDevice currentDevice] uniqueIdentifier];
To get the device model:
value = [[UIDevice currentDevice] model]
To get the device name:
value = [[UIDevice currentDevice] name]
Upvotes: 2