<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SDK</title>
	<atom:link href="https://apptyrant.com/tag/sdk/feed/" rel="self" type="application/rss+xml" />
	<link>https://apptyrant.com</link>
	<description>Great apps for macOS and iOS</description>
	<lastBuildDate>Thu, 23 Jan 2020 19:27:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://i0.wp.com/apptyrant.com/wordpress/wp-content/uploads/2018/04/cropped-1024AppTyrantIconOnTanBG3.png?fit=32%2C32&#038;ssl=1</url>
	<title>SDK</title>
	<link>https://apptyrant.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">103265284</site>	<item>
		<title>How to Deprecate your Own API in Objective-C</title>
		<link>https://apptyrant.com/2015/01/17/how-to-deprecate-your-own-api-in-objective-c/</link>
					<comments>https://apptyrant.com/2015/01/17/how-to-deprecate-your-own-api-in-objective-c/#comments</comments>
		
		<dc:creator><![CDATA[App Tyrant Corp]]></dc:creator>
		<pubDate>Sat, 17 Jan 2015 17:12:27 +0000</pubDate>
				<category><![CDATA[Developer Reference]]></category>
		<category><![CDATA[app development]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Cocoa Touch]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[Xcode]]></category>
		<guid isPermaLink="false">http://apptyrant.com/?p=991</guid>

					<description><![CDATA[<p>To mark some of your own API as deprecated in Objective-C, you simply can add the following attribute to your method declaration (as seen in the snippet below): -(void)myOldMethod __attribute((deprecated("Use the myNewMethod instead."))); Now when you call myOldMethod in your code, the compiler will warn you that: &#8220;myOldMethod is deprecated. Use the myNewMethod instead&#8221;. You ... <a title="How to Deprecate your Own API in Objective-C" class="read-more" href="https://apptyrant.com/2015/01/17/how-to-deprecate-your-own-api-in-objective-c/" aria-label="Read more about How to Deprecate your Own API in Objective-C">Read more</a></p>
The post <a href="https://apptyrant.com/2015/01/17/how-to-deprecate-your-own-api-in-objective-c/">How to Deprecate your Own API in Objective-C</a> first appeared on <a href="https://apptyrant.com">App Tyrant</a>.]]></description>
										<content:encoded><![CDATA[<p>To mark some of your own API as deprecated in Objective-C, you simply can add the following attribute to your method declaration (as seen in the snippet below):</p>
<pre lang="objc" >-(void)myOldMethod __attribute((deprecated("Use the myNewMethod instead.")));
</pre>
<p>
Now when you call myOldMethod in your code, the compiler will warn you that: &#8220;myOldMethod is deprecated. Use the myNewMethod instead&#8221;. You can also add the deprecated attribute to property declarations.
</p>
<p>
But what if you wanted to be more specific?  For instance, if there is a better way to handle something in the iOS 8 SDK, you can mark an old method as deprecated only for projects that have iOS 8.0 or later as the deployment target.
</p>
<pre lang="objc">
-(void)myOldMethod NS_DEPRECATED_IOS(3_0, 8_0,"Use myNewMethod instead.");
</pre>
<p>Using the code snippet above, if you call myOldMethod the compiler will <i>only</i> warn you that the method is deprecated if your project&#8217;s deployment target is set to iOS 8 or later. </p>
<p>
Deprecating your own methods can come in handy especially if you have written your own framework that is used across multiple projects. You may choose to deprecate some of your own API rather than removing the methods entirely until you get around to modifying your existing projects to use your new API.
</p>The post <a href="https://apptyrant.com/2015/01/17/how-to-deprecate-your-own-api-in-objective-c/">How to Deprecate your Own API in Objective-C</a> first appeared on <a href="https://apptyrant.com">App Tyrant</a>.]]></content:encoded>
					
					<wfw:commentRss>https://apptyrant.com/2015/01/17/how-to-deprecate-your-own-api-in-objective-c/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">991</post-id>	</item>
	</channel>
</rss>
