<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Get iPhone Device Name, Unique Device Identifier (UDID), OS and Model</title>
	<atom:link href="http://iPhoneDeveloperTips.com/device/get-iphone-device-name-unique-device-identifier-udid-os-and-model.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com/device/get-iphone-device-name-unique-device-identifier-udid-os-and-model.html</link>
	<description>iOS Developer Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Wed, 08 Feb 2012 06:31:16 -0600</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: John Muchow</title>
		<link>http://iPhoneDeveloperTips.com/device/get-iphone-device-name-unique-device-identifier-udid-os-and-model.html#comment-62758</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Tue, 15 Nov 2011 21:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=3219#comment-62758</guid>
		<description>I wrote about an alternative here that may be an option for a unique identifier: &lt;a href=&quot;http://iphonedevelopertips.com/device/determine-mac-address.html&quot; rel=&quot;nofollow&quot;&gt;Determine MAC Address&lt;/a&gt; not that the UDID is deprecated.</description>
		<content:encoded><![CDATA[<p>I wrote about an alternative here that may be an option for a unique identifier: <a href="http://iphonedevelopertips.com/device/determine-mac-address.html" rel="nofollow">Determine MAC Address</a> not that the UDID is deprecated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cesare</title>
		<link>http://iPhoneDeveloperTips.com/device/get-iphone-device-name-unique-device-identifier-udid-os-and-model.html#comment-62745</link>
		<dc:creator>Cesare</dc:creator>
		<pubDate>Tue, 15 Nov 2011 16:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=3219#comment-62745</guid>
		<description>Unfortunately it is deprecated in iOS5.</description>
		<content:encoded><![CDATA[<p>Unfortunately it is deprecated in iOS5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://iPhoneDeveloperTips.com/device/get-iphone-device-name-unique-device-identifier-udid-os-and-model.html#comment-21625</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Thu, 29 Jul 2010 18:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=3219#comment-21625</guid>
		<description>The post below shows how to get the device type;

&lt;a href=&quot;http://iphonedevelopertips.com/device/determine-if-iphone-is-3g-or-3gs-determine-if-ipod-is-first-or-second-generation.html&quot; rel=&quot;nofollow&quot;&gt;Determine Device Type – 3G or 3GS / iPod First or Second Generation&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>The post below shows how to get the device type;</p>
<p><a href="http://iphonedevelopertips.com/device/determine-if-iphone-is-3g-or-3gs-determine-if-ipod-is-first-or-second-generation.html" rel="nofollow">Determine Device Type – 3G or 3GS / iPod First or Second Generation</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RRogers</title>
		<link>http://iPhoneDeveloperTips.com/device/get-iphone-device-name-unique-device-identifier-udid-os-and-model.html#comment-21622</link>
		<dc:creator>RRogers</dc:creator>
		<pubDate>Thu, 29 Jul 2010 17:25:04 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=3219#comment-21622</guid>
		<description>Is there a way to retrieve the model type, such as 3G, 3GS and 4? I mainly need to know if the device is a 3 or 4 (G or GS isn&#039;t necessary, but would be useful).</description>
		<content:encoded><![CDATA[<p>Is there a way to retrieve the model type, such as 3G, 3GS and 4? I mainly need to know if the device is a 3 or 4 (G or GS isn&#8217;t necessary, but would be useful).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent Priddy</title>
		<link>http://iPhoneDeveloperTips.com/device/get-iphone-device-name-unique-device-identifier-udid-os-and-model.html#comment-7921</link>
		<dc:creator>Brent Priddy</dc:creator>
		<pubDate>Thu, 17 Dec 2009 21:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=3219#comment-7921</guid>
		<description>you can get the device model, like iPhone2,1 by using  sysctlbyname(), Erica Sadun had a writeup about this at http://arstechnica.com/apple/guides/2009/03/iphone-dev-determining-your-platform.ars

the platform method below will give you @&quot;iPhone2,1&quot; or whatever the device is

- (NSString *) getSysInfoByName:(char *)typeSpecifier
{
size_t size;
    sysctlbyname(typeSpecifier, NULL, &amp;size, NULL, 0);
    char *answer = malloc(size);
sysctlbyname(typeSpecifier, answer, &amp;size, NULL, 0);
NSString *results = [NSString stringWithCString:answer encoding: NSUTF8StringEncoding];
free(answer);
return results;
}
 
- (NSString *) platform
{
return [self getSysInfoByName:&quot;hw.machine&quot;];
}</description>
		<content:encoded><![CDATA[<p>you can get the device model, like iPhone2,1 by using  sysctlbyname(), Erica Sadun had a writeup about this at <a href="http://arstechnica.com/apple/guides/2009/03/iphone-dev-determining-your-platform.ars" rel="nofollow">http://arstechnica.com/apple/guides/2009/03/iphone-dev-determining-your-platform.ars</a></p>
<p>the platform method below will give you @&#8221;iPhone2,1&#8243; or whatever the device is</p>
<p>- (NSString *) getSysInfoByName:(char *)typeSpecifier<br />
{<br />
size_t size;<br />
    sysctlbyname(typeSpecifier, NULL, &amp;size, NULL, 0);<br />
    char *answer = malloc(size);<br />
sysctlbyname(typeSpecifier, answer, &amp;size, NULL, 0);<br />
NSString *results = [NSString stringWithCString:answer encoding: NSUTF8StringEncoding];<br />
free(answer);<br />
return results;<br />
}</p>
<p>- (NSString *) platform<br />
{<br />
return [self getSysInfoByName:"hw.machine"];<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

