<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Techipost</title>
	
	<link>http://www.techipost.com</link>
	<description />
	<lastBuildDate>Fri, 26 Apr 2013 10:33:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TechiPost" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="techipost" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">TechiPost</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Open Source Multi Values Selector Dropdown in iOS</title>
		<link>http://www.techipost.com/2013/04/26/open-source-multi-values-selector-dropdown-in-ios/</link>
		<comments>http://www.techipost.com/2013/04/26/open-source-multi-values-selector-dropdown-in-ios/#comments</comments>
		<pubDate>Fri, 26 Apr 2013 09:33:35 +0000</pubDate>
		<dc:creator>Umair Ashraf</dc:creator>
				<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iOS code snippets]]></category>
		<category><![CDATA[Open Source iOS]]></category>
		<category><![CDATA[open source multi values selector dropdown]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1288</guid>
		<description><![CDATA[Most of the time, we need multiple values selector in iOS for example selecting multiple days of the week, selecting multiple contacts, selecting multiple countries from dropdown. If there is one country selected in dropdown, then it will show selected country. If there are multiple countries selected then it will show “Multiple Countries Download from [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.techipost.com/2013/04/26/open-source-multi-values-selector-dropdown-in-ios/"><img class="size-full wp-image-1289" title="Open-Source-Multi-Value-Selector-iOS" src="http://www.techipost.com/wp-content/uploads/2013/04/Open-Source-Multi-Value-Selector-iOS.jpg" alt="" width="525" height="294" /></a></p>
<p style="text-align: justify;">Most of the time, we need multiple values selector in iOS for example selecting multiple days of the week, selecting multiple contacts, selecting multiple countries from dropdown. If there is one country selected in dropdown, then it will show selected country. If there are multiple countries selected then it will show “Multiple Countries</p>
<p style="text-align: justify;"><span id="more-1288"></span></p>
<p style="text-align: justify;"><a href="http://www.techipost.com/wp-content/uploads/2013/04/viewer.png"><img class="alignnone size-medium wp-image-1290" title="viewer" src="http://www.techipost.com/wp-content/uploads/2013/04/viewer-154x300.png" alt="" width="154" height="300" /></a></p>
<p style="text-align: justify;"><strong>Download from Github:</strong></p>
<p style="text-align: justify;"><a href="https://github.com/asefnoor/MultidaysSelectoriOS">Source Code</a></p>
<p style="text-align: justify;"><strong>Developer:</strong> asif.noor@techipost.com</p>
<p style="text-align: justify;">
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2013/04/26/open-source-multi-values-selector-dropdown-in-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Responsive Business Portfolio: Folio</title>
		<link>http://www.techipost.com/2012/11/07/responsive-business-portfolio-folio/</link>
		<comments>http://www.techipost.com/2012/11/07/responsive-business-portfolio-folio/#comments</comments>
		<pubDate>Wed, 07 Nov 2012 10:27:30 +0000</pubDate>
		<dc:creator>Umair Ashraf</dc:creator>
				<category><![CDATA[Templates]]></category>
		<category><![CDATA[Responsive]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[text slider]]></category>
		<category><![CDATA[WordPress templates]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1247</guid>
		<description><![CDATA[Folio is a responsive html  business portfolio template.The template is exclusively  designed/developed  for techipost.com by Sarfraz Shaukat. Its intuitive text/image slider gives you a good showcase to project your Business Portfolio, Projects,Products etc. Its simple and clean design makes it more attractive and eye catching for users. This template is best suitable for all those [...]]]></description>
			<content:encoded><![CDATA[<p>Folio is a responsive html  business portfolio template.The template is exclusively  designed/developed  for <a href="http://www.techipost.com">techipost.com</a> by<a href="http://www.greepit.com"> Sarfraz Shaukat</a>. Its intuitive text/image slider gives you a good showcase to project your Business Portfolio, Projects,Products etc. Its simple and clean design makes it more attractive and eye catching for users.</p>
<p style="text-align: justify;"><a href="http://www.techipost.com/2012/11/07/responsive-business-portfolio-folio/"><img class="size-full wp-image-1250" title="preview" src="http://www.techipost.com/wp-content/uploads/2012/11/preview.jpg" alt="" width="505" height="300" /></a></p>
<p><span id="more-1247"></span></p>
<p>This template is best suitable for all those developers who want rapid development of business portfolio websites.</p>
<p><strong>Main Features</strong></p>
<ul>
<li>Intuitive JQuery text Slider</li>
<li>Fully Responsive Design &amp; Layout</li>
<li>Valid HTML/CSS</li>
<li>Cross Browser Compatible</li>
<li>Working Contact Form</li>
<li>Portfolio Items Showcase</li>
</ul>
<p>&nbsp;</p>
<p><strong>Licensing</strong></p>
<p>This template is free for personal and commercial use. If you want to spread the word please link to this page directly.</p>
<p>&nbsp;</p>
<p><a href="http://techipost.com/foliotemplate/index.html">View Demo</a></p>
<p><a href="http://www.techipost.com/Downloads/folio.zip">Download Source Code</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2012/11/07/responsive-business-portfolio-folio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<enclosure url="http://www.techipost.com/Downloads/folio.zip" length="2361327" type="application/zip" /></item>
		<item>
		<title>How to become an iOS developer</title>
		<link>http://www.techipost.com/2012/10/17/how-to-become-an-ios-developer/</link>
		<comments>http://www.techipost.com/2012/10/17/how-to-become-an-ios-developer/#comments</comments>
		<pubDate>Wed, 17 Oct 2012 16:15:34 +0000</pubDate>
		<dc:creator>Asif Noor</dc:creator>
				<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iPhone Tutorials for Beginners]]></category>
		<category><![CDATA[Beginning iOS development]]></category>
		<category><![CDATA[iOS development learning resources]]></category>
		<category><![CDATA[iOS for beginners]]></category>
		<category><![CDATA[Where to start iOS development]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1218</guid>
		<description><![CDATA[Developer: asif.noor@techipost.com Motivation behind learning iOS development or becoming iOS developer Well ! to be honest, I started iOS application development in mid of 2010 because everyone was talking about iOS and being an iOS developer you can earn more than developing for other platforms. Mobile development is dominating the market.Moving from developing applications for [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.techipost.com/2012/10/17/how-to-become-an-ios-developer/"><img class="size-full wp-image-1237" title="how_to_become_iOS_developer" src="http://www.techipost.com/wp-content/uploads/2012/10/how_to_become_iOS_developer1.jpg" alt="" width="525" height="300" /></a></p>
<p style="text-align: justify;"><strong>Developer: </strong>asif.noor@techipost.com</p>
<p style="text-align: justify;"><strong>Motivation behind learning iOS development or becoming iOS developer</strong></p>
<p style="text-align: justify;">Well ! to be honest, I started iOS application development in mid of 2010 because everyone was talking about iOS and being an iOS developer you can earn more than developing for other platforms. Mobile development is dominating the market.Moving from developing applications for PC to mobile was exciting transition. Flows of application on iOS was different. Because of less memory available on phone, developers also need to do memory managements which was new to me at start when shifting from .Net development to iOS development. Tuning applications for performance is always a key goal in iOS. Do you also plan to start iOS development? then why not !</p>
<p style="text-align: justify;"><span id="more-1218"></span></p>
<p style="text-align: justify;"><strong>How to start and from where to start?</strong></p>
<div id="attachment_1227" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.techipost.com/wp-content/uploads/2012/10/iOS-development.jpeg"><img class="size-full wp-image-1227" title="iOS development" src="http://www.techipost.com/wp-content/uploads/2012/10/iOS-development.jpeg" alt="iOS development" width="225" height="225" /></a><p class="wp-caption-text">iOS development</p></div>
<p style="text-align: justify;">Lot of people in industry ask me how they can start developing awesome apps for iOS (iPhone/iPad/iPod) platform. The biggest problem they face is how to setup development environment because they dont have mac machine, where to start, how can they launch apps to app store? So I am writing this post to help out all those individuals who are thinking about to start developing application for iOS platform.</p>
<p style="text-align: justify;"><strong>1.Install Mac OS X or Snow Leopard</strong></p>
<p style="text-align: justify;"><strong></strong> The biggest hurdle for most of the people that mac machine is too expensive and they can&#8217;t buy it. So, solution is that you can install Mac operating system on your windows pc in virtual machine or dual boot. I prefer dual boot because running Mac OS in virtual machine is usually very slow. If your laptop or PC supports hardware virtualization, then you can install easily and have intel mother board. You can find out VM image on internet.</p>
<p style="text-align: justify;"><strong>2.</strong> Install <strong>Xcode SDK</strong> as development environment so that you can start developing application for Apple platforms. You can develop application for iPhone,iPod,iPad and Mac platform also. It is just like visual studio for apple platforms. It is free of cost even if you dont have Apple developer license.</p>
<p style="text-align: justify;"><strong>3.</strong> Resources for learning iOS development. Sequence should be first you should learn the language then iOS controls for example, how tableviews, buttons, textfields works, how we can store data in iOS applications etc.</p>
<p style="text-align: justify;"><strong>iOS development learning resources</strong></p>
<p style="text-align: justify;"><strong>A.</strong>Thanks to apple for course CS 193 P Stanford University video lectures which are freely available on Youtube and iTunes.Best thing to start with is watching this <a title="Stanford CS 193 P video Lectures series" href="https://itunes.apple.com/itunes-u/ipad-iphone-application-development/id473757255?mt=10">Stanford Course video tutorials</a>.</p>
<p style="text-align: justify;"><strong>B. </strong>First you should learn Objective-C, for learning Objective-C I followed this <a title="Objective-C for absolute beginners" href="http://www.apress.com/9781430228325">book</a>.</p>
<p style="text-align: justify;"><strong>C.</strong> For learning iPhone development, alot of people including me recommends this book <a title="Beginning iPhone Development Exploring the iPhone SDK" href="http://www.apress.com/9781430216261">Beginning iPhone Development Exploring the iPhone SDK</a>.</p>
<p style="text-align: justify;"><strong>D. </strong>You can also look at <a title="iOS development centre" href="https://developer.apple.com/devcenter/ios/index.action">iOS dev centre</a> for different iOS material.</p>
<p style="text-align: justify;"><strong>E. </strong>Lot of people recommends looking at other developers&#8217; code. So here is <a title="iOS source codes" href="http://stackoverflow.com/questions/1353130/where-can-i-find-sample-iphone-code">link</a> which contains lots of iOS source code. You should look at them and get the idea how to structure you iOS application. How to manage large scale project. What are best strategies while developing iOS products.</p>
<p style="text-align: justify;"><strong>F. </strong>MIT open source iOS application source code  &#8221;<a title="MIT-Mobile-for-iPhone" href="https://github.com/MIT-Mobile/MIT-Mobile-for-iPhone"><strong>MIT-Mobile-for-iPhone</strong></a>&#8220;is really nice. You will learn a lot by looking at this code.</p>
<p style="text-align: justify;"><strong> 4. </strong>I would recommend that while you are learning either through reading or by watching video lectures you should develop sample applications otherwise you will forget most of things when you develop after watching videos.</p>
<p style="text-align: justify;"><strong>5. </strong>There are few concepts or controls that you will be using again and again while development that you must learn carefully are listed below.</p>
<ul style="text-align: justify;">
<li>Table View</li>
<li>Navigation Controller</li>
<li>Tabbar Controller</li>
<li>Memory management (you should study this in depth)</li>
<li>Interface builder (You can drag and drop components on nibs (forms) to create GUI)</li>
<li>Protocols and delegates</li>
<li>JSON and XML parsing</li>
<li>Reading and writing to plist</li>
<li>Core Data for data storage</li>
</ul>
<p style="text-align: justify;"><strong>6.</strong>If you want to publish your apps to app store, you have to enroll yourself  in <a title="iOS developer program" href="https://developer.apple.com/programs/ios/">iOS developer program</a> which cost $99 for one year. You can launch as many apps as you want in one year. Next year you have to renew this program.</p>
<p style="text-align: justify;"><strong>7.  </strong>You can start cloning address book application while learning iOS development. It is also available in iPhone simulator. You can look at it and start cloning it.</p>
<p style="text-align: justify;"><strong>8. </strong>For learning JSON parsing,  develop application like movie application in which you will use JSON parsing while consuming web services. <a title="Rotten tomatoes API" href="http://developer.rottentomatoes.com/docs">Follow this link</a> of Rotten tomatoes API.</p>
<p style="text-align: justify;">Good luck everyone !</p>
<p style="text-align: justify;"><strong>Let me know your thoughts, comments , suggestions.</strong></p>
<p style="text-align: justify;">
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2012/10/17/how-to-become-an-ios-developer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>One pager WordPress theme</title>
		<link>http://www.techipost.com/2012/10/11/one-pager-wordpress-theme/</link>
		<comments>http://www.techipost.com/2012/10/11/one-pager-wordpress-theme/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 12:15:09 +0000</pubDate>
		<dc:creator>Umair Ashraf</dc:creator>
				<category><![CDATA[WordPress themes]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1208</guid>
		<description><![CDATA[I recently developed this one pager business portfolio wordpress theme for Egrappler . Here is the Standardized version of this theme without using any external Option Tree framework. This version is perfect for those user who are getting issues with the  Option Tree version. Special Features : Custom Post Types . WordPress Standardized for all versions. Excellent [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">
<p style="text-align: justify;"><a href="http://www.techipost.com/wp-content/uploads/2012/10/Free-Responsive-Portfolio-WordPress-Theme-OnePage-copy.jpg"><img class="size-full wp-image-1210" title="Free-Responsive-Portfolio-WordPress-Theme-OnePage copy" src="http://www.techipost.com/wp-content/uploads/2012/10/Free-Responsive-Portfolio-WordPress-Theme-OnePage-copy.jpg" alt="" width="525" height="280" /></a></p>
<p style="text-align: justify;">I recently developed this one pager business portfolio wordpress theme for <a href="http://www.egrappler.com" target="_blank">Egrappler</a> . Here is the Standardized version of this theme without using any external Option Tree framework. This version is perfect for those user who are getting issues with the  Option Tree version.</p>
<p style="text-align: justify;"><img title="More..." src="http://www.techipost.com/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /><span id="more-1208"></span></p>
<p style="text-align: justify;">Special Features :</p>
<ul style="text-align: justify;">
<li>Custom Post Types .</li>
<li>WordPress Standardized for all versions.</li>
<li>Excellent jquery sliders</li>
<li>Easy to configure and install</li>
<li>Integrated contact form</li>
<li>Skill measurements</li>
</ul>
<p style="text-align: justify;"><a href="http://onepager.techipost.com" target="_blank">View Demo</a></p>
<p style="text-align: justify;"><a href="http://www.techipost.com/Downloads/OnePager_standard.zip" target="_blank">Download WordPress friendly version</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2012/10/11/one-pager-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<enclosure url="http://www.techipost.com/Downloads/OnePager_standard.zip" length="3763661" type="application/zip" /></item>
		<item>
		<title>Brownie-Free WordPress Theme</title>
		<link>http://www.techipost.com/2012/10/08/brownie-free-wordpress-theme/</link>
		<comments>http://www.techipost.com/2012/10/08/brownie-free-wordpress-theme/#comments</comments>
		<pubDate>Mon, 08 Oct 2012 21:37:15 +0000</pubDate>
		<dc:creator>Umair Ashraf</dc:creator>
				<category><![CDATA[WordPress themes]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1197</guid>
		<description><![CDATA[Brownie is a  clean , beautiful and responsive Premium WordPress theme developed by Umair Ashraf . The template of this theme is designed by  Sarfraz Shaukat  Brownie template .  You can visit his site Egrappler.com for his other valuable and excellent designs and resource. The most exciting feature of this theme is its  beautiful design which supports cross browser comparability.Its responsive design [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.techipost.com/wp-content/uploads/2012/10/responsive-html5-portfolio-and-business-template-brownie-copy.jpg"><img class="size-full wp-image-1199" title="responsive-html5-portfolio-and-business-template-brownie copy" src="http://www.techipost.com/wp-content/uploads/2012/10/responsive-html5-portfolio-and-business-template-brownie-copy.jpg" alt="" width="525" height="267" /></a></p>
<p style="text-align: justify;">Brownie is a  clean , beautiful and responsive Premium WordPress theme developed by <strong>Umair Ashraf</strong> . The template of this theme is designed by  <strong>Sarfraz Shaukat</strong><strong> </strong> <a href="http://www.egrappler.com/free-responsive-html5-portfolio-business-website-template-brownie/">Brownie template</a> .  You can visit his site <a href="http://egrappler.com">Egrappler.com</a> for his other valuable and excellent designs and resource.</p>
<p style="text-align: justify;"><span id="more-1197"></span></p>
<p style="text-align: justify;">The most exciting feature of this theme is its  beautiful design which supports cross browser comparability.Its responsive design allows this theme to be easily viewed by all major hand held devices.</p>
<p style="text-align: justify;"><strong>Main Features</strong></p>
<ul>
<li>Responsive template</li>
<li>Valid CSS3 &amp; HTML5</li>
<li>WordPress Standardized</li>
<li>Easily Customizable</li>
</ul>
<p><a href="http://www.techipost.com/Downloads/browniev1.0.zip">Download Theme</a></p>
<p><a href="http://www.techipost.com/brownie">Online Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2012/10/08/brownie-free-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<enclosure url="http://www.techipost.com/Downloads/browniev1.0.zip" length="220659" type="application/zip" /></item>
		<item>
		<title>Free Responsive Portfolio WordPress Theme :Creative</title>
		<link>http://www.techipost.com/2012/10/01/free-responsive-portfolio-wordpress-theme-creative/</link>
		<comments>http://www.techipost.com/2012/10/01/free-responsive-portfolio-wordpress-theme-creative/#comments</comments>
		<pubDate>Mon, 01 Oct 2012 11:17:21 +0000</pubDate>
		<dc:creator>Umair Ashraf</dc:creator>
				<category><![CDATA[WordPress themes]]></category>
		<category><![CDATA[Free WordPress]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1162</guid>
		<description><![CDATA[  IAmCreative is another simple, clean and responsive HTML5 portfolio WordPress theme developed by Umair Ashraf. It helps you to effectively project your work and it is perfect for any designer, photographer, illustrator, creative person or agency. It focuses on displaying a high quality portfolio, large typo presented in a really elegant way. Main Features Built using HTML5 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"> <a href="http://www.techipost.com/wp-content/uploads/2012/10/post-preview.jpg"><img class="size-full wp-image-1171" title="post-preview" src="http://www.techipost.com/wp-content/uploads/2012/10/post-preview.jpg" alt="" width="525" height="300" /></a></p>
<p>IAmCreative is another simple, clean and <strong>responsive HTML5 portfolio WordPress theme developed by Umair Ashraf.</strong> It helps you to effectively project your work and it is perfect for any designer, photographer, illustrator, creative person or agency. It focuses on displaying a high quality portfolio, large typo presented in a really elegant way.</p>
<h3><span id="more-1162"></span></h3>
<h3>Main Features</h3>
<ul>
<li>Built using HTML5</li>
<li>Responsive and Adaptive Design</li>
<li>Working Contact Form</li>
<li>Intuitive Image Slider and Image Gallery</li>
<li>Easy to use Option Panel</li>
</ul>
<h3></h3>
<h3>Installing Creative</h3>
<p>Download the theme from the link given below and copy it in to the WordPress themes folder.Finally go to appearance-&gt;Themes to activate this theme.</p>
<h3></h3>
<h3>Setting up Creative</h3>
<p>Go to pages tab and Add three pages one by one.For each page choose the page template as Main,Contact and Work appropriately.Go to Appearance and Create a menu with three menu items Home,Contact and Work .Assign the three pages to these three menu items one by one.</p>
<p>&nbsp;</p>
<p><a href="http://www.techipost.com/Downloads/creative.zip">Download Theme</a></p>
<p><a href="http://www.techipost.com/creative">Online Demo</a></p>
<p><a href="http://www.techipost.com/Downloads/creativedemo.avi">Demo video</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2012/10/01/free-responsive-portfolio-wordpress-theme-creative/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.techipost.com/Downloads/creativedemo.avi" length="33127758" type="video/avi" />
		</item>
		<item>
		<title>MVC  (Compound design pattern) in Objective-C</title>
		<link>http://www.techipost.com/2012/09/24/mvc-compound-design-pattern-in-objective-c/</link>
		<comments>http://www.techipost.com/2012/09/24/mvc-compound-design-pattern-in-objective-c/#comments</comments>
		<pubDate>Mon, 24 Sep 2012 14:54:57 +0000</pubDate>
		<dc:creator>Asif Noor</dc:creator>
				<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iPhone Tutorials for Beginners]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1108</guid>
		<description><![CDATA[If you have following questions in your mind What is MVC (Model, View, Controller)? What is role of Model, View and Controller? What piece of code I should place in model, what in controller and what in view? DOB that I am getting from server is not according to format that I want to display [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.techipost.com/2012/09/24/mvc-compound-design-pattern-in-objective-c/"><img class="size-full wp-image-1116" title="mvc-post" src="http://www.techipost.com/wp-content/uploads/2012/09/mvc-post.jpg" alt="" width="525" height="252" /></a></p>
<p><span id="more-1108"></span></p>
<p style="text-align: justify;">If you have following questions in your mind</p>
<ol style="text-align: justify;">
<li>What is MVC (Model, View, Controller)?</li>
<li>What is role of Model, View and Controller?</li>
<li>What piece of code I should place in model, what in controller and what in view?</li>
<li>DOB that I am getting from server is not according to format that I want to display in view. Where should I place function (method) to format the date controller or view or in model?</li>
<li>Is cocoa version of MVC different from traditional MVC?</li>
<li>Does NSNotification in cocoa break the MVC architecture?</li>
</ol>
<p style="text-align: justify;">Then I am writing this post to help you out to understand the MVC and I will try to answer all above questions in my post.</p>
<h1 style="text-align: justify;">What is Design Pattern?</h1>
<p style="text-align: justify;">A general reusable solution to recurring problem is called design pattern. There are many design patterns for example Factory pattern, Proxy pattern, Façade pattern and also MVC.</p>
<h1 style="text-align: justify;">MVC Design Pattern?</h1>
<p style="text-align: justify;"><strong> </strong>First of all I will start with basics of each component of MVC (Model, View, Controller) one by one and then I will jump to Objective-C code example, through which I will show how to implement MVC in iOS application.</p>
<p style="text-align: justify;">MVC design pattern makes your code more reusable and extendable. If you want to make change in your code on new requirement, you can change it easily.</p>
<h1 style="text-align: justify;">Brief overview of MVC</h1>
<p style="text-align: justify;">You click on a button on the view in iPhone or iPad (View) to display person information; it is delegated to controller against that button action which gets called when button is pressed (Controller). Controller then calls model to return person info object, so that controller can give this data to view to display it.  Now this call to fetch data, fill object and returning that filled object or any value is part of model object (Model).</p>
<h1 style="text-align: justify;">MVC Roles</h1>
<p style="text-align: justify;">Model, view, and controller are three different roles that objects can play in an application.</p>
<h1 style="text-align: justify;">View</h1>
<p style="text-align: justify;">View should be only responsible for displaying data. What can be part of view? For example, if you make a view without nib then your label, buttons, textfields can be part of it. I will show example through code, which will clear the concept. View should not store data but it can cache some data for performance optimization reasons.</p>
<p style="text-align: justify;">Objects in the &#8216;view&#8217; role make up the application&#8217;s interface to the outside world. The user interacts with view objects. View objects know how to display information and collect user input, but they don&#8217;t make any decisions about what to do with the data.</p>
<p style="text-align: justify;"><strong>We normally create view components alloc/init them, set their frames and add them as subviews in view.</strong></p>
<h1 style="text-align: justify;">Controller</h1>
<p style="text-align: justify;">You press a button from view; against that touch there is function that gets called. That function is part of controller. This function can call model to respond back to this call. Controller can communicate to both model and view because it has references to both of them.</p>
<p style="text-align: justify;">Sometimes view can ask for information which view wants to display or sometimes view gives command to store new value in model for example when user enters new values and we press update button. These calls are delegated to controller and controller sends them to model. Model responds back to controller and controller then give data to view to update it.</p>
<p style="text-align: justify;">Controller sits between model and view. If an app needs to display some data, the controller retrieves the data from the model object(s) and gives it to view objects to display. When the user causes some action to happen (say, they press a button), the controller decides how to respond.</p>
<p style="text-align: justify;"><strong>You can apply formatter and any kinds of checks here. For example, you are fetching date and it is not according to format that you want. Then you change format in controller before sending to view.</strong></p>
<p style="text-align: justify;"><strong> </strong></p>
<h1 style="text-align: justify;">Model</h1>
<p style="text-align: justify;">Model objects are those store data and, often logic (operations/ functions) that relates the different pieces of data to each other. For example, if I am fetching data from core data table from employee table then I will create a model object employee with all properties that can. Any data that is stored persistently in application is normally part of Model. In ideal MVC, there is not any kind of contact between model and view.</p>
<p style="text-align: justify;">Is cocoa version of MVC different from traditional MVC? Yes. It is bit different. Because in traditional MVC model, model can communicate with views or view can communicate with model but in COCOA MVC this does not happen. Model and View interacts with each other through controller.</p>
<div id="attachment_1111" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.techipost.com/wp-content/uploads/2012/09/cocoa_mvc1.gif"><img class="size-medium wp-image-1111 " title="cocoa_mvc" src="http://www.techipost.com/wp-content/uploads/2012/09/cocoa_mvc1-300x118.gif" alt="cocoa MVC" width="300" height="118" /></a><p class="wp-caption-text">cocoa MVC</p></div>
<p>Now if we look at traditional MVC</p>
<div id="attachment_1114" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.techipost.com/wp-content/uploads/2012/09/traditional_mvc1.gif"><img class="size-medium wp-image-1114 " title="traditional_mvc" src="http://www.techipost.com/wp-content/uploads/2012/09/traditional_mvc1-300x114.gif" alt="Traditional MVC" width="300" height="114" /></a><p class="wp-caption-text">Traditional MVC</p></div>
<p>Final OutPut :</p>
<p><a href="http://www.techipost.com/wp-content/uploads/2012/09/mvc.jpg"><img class="size-full wp-image-1126 aligncenter" title="mvc" src="http://www.techipost.com/wp-content/uploads/2012/09/mvc.jpg" alt="" width="479" height="461" /></a></p>
<p>&nbsp;</p>
<p><strong> Note: </strong>Above are the basic concepts that you should refresh before looking into source code. I will soon upload video which will explain the code.</p>
<p><a href="http://www.techipost.com/Downloads/MVC.zip">Download Source Code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2012/09/24/mvc-compound-design-pattern-in-objective-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<enclosure url="http://www.techipost.com/Downloads/MVC.zip" length="75649" type="application/zip" /></item>
		<item>
		<title>Useful WordPress Code Snippets</title>
		<link>http://www.techipost.com/2012/09/20/useful-wordpress-code-snippets/</link>
		<comments>http://www.techipost.com/2012/09/20/useful-wordpress-code-snippets/#comments</comments>
		<pubDate>Thu, 20 Sep 2012 11:59:24 +0000</pubDate>
		<dc:creator>Umair Ashraf</dc:creator>
				<category><![CDATA[General Articles]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[wordPress code]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1072</guid>
		<description><![CDATA[Today i am starting a new series of posts related to code snippets on my blog and i would like to share some interesting and very useful WordPress code snippets in today&#8217;s post. You will certainly find these code snippets useful during WordPress theme development.  1.Getting Menu items The following code snippet will help you [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.techipost.com/2012/09/20/useful-wordpress-code-snippets/"><img class="size-full wp-image-1078" title="wpcodesnippets" src="http://www.techipost.com/wp-content/uploads/2012/09/wpcodesnippets.jpg" alt="" width="525" height="239" /></a></p>
<p style="text-align: justify;">Today i am starting a new series of posts related to code snippets on my blog and i would like to share some interesting and very useful WordPress code snippets in today&#8217;s post. You will certainly find these code snippets useful during WordPress theme development.</p>
<p><span id="more-1072"></span></p>
<h1> 1.Getting Menu items</h1>
<p>The following code snippet will help you to get Menu items one by one.It allows you  to perform filtering and styling on each item.</p>
<p>&nbsp;</p>
<pre class="brush:php">$menuname='Main Menu';

$menu = wp_get_nav_menu_items($menuname);
foreach($menu as $item)
{

echo '<a href="'.$item-&gt;url.'">'.$item-&gt;title.'</a>'; 
}</pre>
<p>&nbsp;</p>
<h1>2.Custom Paging Based on Taxonomy</h1>
<p>You can use the following code to implement your own custom paging of posts based on taxonomy types.It will even help you to just implement your own custom paging for WordPress Custom post types.</p>
<p>&nbsp;</p>
<pre class="brush:php">$menuname='Main Menu';

<!--?php global $wp_query; $paged = (empty($wp_query--->query_vars['paged'])) ? 3 : $wp_query-&gt;query_vars['paged'];
$var=$_SERVER['REQUEST_URI']; $pieces = explode("/", $var); $paged=$pieces[count($pieces)-2]; 

query_posts(array(
'post_type' =&gt; 'blog', // can be custom post type
'paged' =&gt; $paged, // set the current page
'posts_per_page' =&gt; 5,
'taxonomy'=&gt;'blog-categories',
'term'=&gt;$_GET['cat']

));

function pagination($prev = '«', $next = '»') {
    global $wp_query, $wp_rewrite;
    $wp_query-&gt;query_vars['paged'] &gt; 1 ? $current = $wp_query-&gt;query_vars['paged'] : $current = 1;
    $pagination = array(
        'base' =&gt; @add_query_arg('paged','%#%'),
        'format' =&gt; '',
        'total' =&gt; $wp_query-&gt;max_num_pages,
        'current' =&gt; $current,
        'prev_text' =&gt; __($prev),
        'next_text' =&gt; __($next),
        'type' =&gt; 'plain'
);
    if( $wp_rewrite-&gt;using_permalinks() )
        $pagination['base'] = user_trailingslashit( trailingslashit( remove_query_arg( 's', get_pagenum_link( 1 ) ) ) . 'page/%#%/', 'paged' );

    if( !empty($wp_query-&gt;query_vars['s']) )
        $pagination['add_args'] = array( 's' =&gt; get_query_var( 's' ) );

    echo paginate_links( $pagination );
};

?&gt;</pre>
<p>&nbsp;</p>
<h1>3.Display Latest Custom Post Only</h1>
<p>The following code can be used to display the latest custom post type only. You can tweak this code to display one ,two or more than two custom post types.</p>
<pre class="brush:php"><!--?php   $args = array( 'numberposts' =--> 1, 'post_type'=&gt; 'introductions', 'order' =&gt; 'DESC' ,'orderby'=&gt; 'post_date' );
					$postslist = get_posts($args);
					foreach ($postslist as $post) :
						setup_postdata($post);
					?&gt;
  <!--?php endforeach; ?--></pre>
<h2 class="ML10"></h2>
<p>&nbsp;</p>
<h1>4.Change Login and Admin page Logo</h1>
<p style="text-align: justify;"><a href="http://cleanresume.techipost.com/wp-admin"><img class="size-full wp-image-1091" title="example" src="http://www.techipost.com/wp-content/uploads/2012/09/example.jpg" alt="" width="525" height="393" /></a><br />
You can copy and paste the following code in functions.php file inside your theme folder to change logo of Login and Admin page</p>
<pre class="brush:php">add_action('admin_head', 'my_custom_logo');
function my_custom_logo() {
echo '';

}

function my_login_logo() {
 echo '';
}

add_action('login_head', 'my_login_logo');</pre>
<p>&nbsp;</p>
<h1>5.Display Archives</h1>
<p>You can display archive of your posts by just putting the following code in your desired page.</p>
<pre class="brush:php"><!--?php get_archives('postbypost', '10', 'custom', '
							<li-->', '</pre>
<p>&#8216;); ?&gt; <!--?php wp_get_archives('type=monthly'); ?--> /* you can change the parameter to get monthy,quarterly or yearly archives */</p>
<p>&nbsp;</p>
<h1>6.Display Facebook Like Box</h1>
<p>You can go to the following page to generate code of your facebook page like box.<br />
<a href="https://developers.facebook.com/docs/reference/plugins/like-box/">Source</a></p>
<p>&nbsp;</p>
<h1>7.Showing Popular Posts in your page</h1>
<p>You can use the following code to Show popular posts with thumbnails in your page.</p>
<pre class="brush:php"></pre>
<ul>
<ul>
<ul><!--?php $my_q = new WP_Query('orderby=comment_count&#038;posts_per_page=5'); ?--> <!--?php while ($pc--->have_posts()) : $my_q-&gt;the_post(); ?&gt;</p>
<li>Posted on <!--?php the_time('F jS, Y') ?--> with <!--?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?--></li>
</ul>
</ul>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<pre class="brush:php"></pre>
<p><a href="http://blog.coffeedesign.net/tutorials/wordpress/useful-wordpress-code-snippets/">Source</a></p>
<p>&nbsp;</p>
<h1>9.Display Random Posts</h1>
<p>You can use the following code to display random posts in your page.</p>
<pre class="brush:php"> 

$rand_posts = get_posts(‘numberposts=5&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;orderby=rand’);
foreach( $rand_posts as $post ) :
?&gt;</pre>
<h1>9.Adding Option Panel for your WordPress Theme</h1>
<p>You can easily add and use Option panel to your WordPress theme.<a href="http://wordpress.org/extend/plugins/option-tree/">OptionTree</a> is a free plugin that allows you to add and use different option panels in your page. You can refer to my following post to configure option tree easily.<br />
<a href="http://www.techipost.com/2012/09/10/how-to-integrate-optiontree-for-wordpress-theme/">Source</a></p>
<p>&nbsp;</p>
<h1>10.Embed a page inside a page</h1>
<p>You can use the following to code to embed a page inside a page.</p>
<pre class="brush:php"><!--?php $post = new WP_Query("page_id=yourpageid");  while($post--->have_posts()) : $post-&gt;the_post();?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2012/09/20/useful-wordpress-code-snippets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Integrate OptionTree for WordPress Theme</title>
		<link>http://www.techipost.com/2012/09/10/how-to-integrate-optiontree-for-wordpress-theme/</link>
		<comments>http://www.techipost.com/2012/09/10/how-to-integrate-optiontree-for-wordpress-theme/#comments</comments>
		<pubDate>Mon, 10 Sep 2012 13:01:52 +0000</pubDate>
		<dc:creator>Umair Ashraf</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[OptionTree]]></category>
		<category><![CDATA[Wordpress Option panel]]></category>
		<category><![CDATA[Wordpress Option Tree]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1024</guid>
		<description><![CDATA[OptionTree is one of the best available option panel for WordPress and is also used in most of Premium WordPress themes.With its wonderful user interface and special features including Drag Drop and Order Items makes it a versatile  theme options UI builder.You can install it as a plugin but this tutorial will help you to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.techipost.com/2012/09/10/how-to-integrate-optiontree-for-wordpress-theme/"><img class="size-full wp-image-1034" title="umair" src="http://www.techipost.com/wp-content/uploads/2012/09/umair.jpg" alt="" width="525" height="300" /></a></p>
<p style="text-align: justify;"><a href="http://wordpress.org/extend/plugins/option-tree/">OptionTree</a> is one of the best available option panel for WordPress and is also used in most of Premium WordPress themes.With its wonderful user interface and special features including Drag Drop and Order Items makes it a versatile  theme options UI builder.You can install it as a plugin but this tutorial will help you to integrate it in your  WordPress Theme without having to download and activate it via plugin page.The tutorial also covers how to make option pages through code instead of using UI builder page provided by the plugin.</p>
<p style="text-align: justify;"><span id="more-1024"></span></p>
<p style="text-align: justify;">So Here are the steps</p>
<h1 style="text-align: justify;"><strong>Step 1</strong></h1>
<p style="text-align: justify;"><a href="http://wordpress.org/extend/plugins/option-tree/">Download</a> and extract the plugin zipped file into the theme folder.e.g if your theme folder name is onepager then there will be a folder name option-tree inside it.</p>
<h1><strong>Step 2</strong></h1>
<p style="text-align: justify;">Cope and paste the following code into functions.php</p>
<pre class="brush:php">/**
 * Optional: set 'ot_show_pages' filter to false.
 * This will hide the settings &amp; documentation pages.
 */
add_filter( 'ot_show_pages', '__return_false' );

/**
 * Required: set 'ot_theme_mode' filter to true.
 */
add_filter( 'ot_theme_mode', '__return_true' );

/**
 * Required: include OptionTree.
 */
include_once( 'option-tree/ot-loader.php' );
/**
 * Theme Options
 */
include_once( 'includes/theme-options.php' );</pre>
<h1><strong>Step 3</strong></h1>
<p>Go to option-tree folder inside theme folder and open the ot-loader.php file.Search the following line of code and set the ot_theme_mode value to true</p>
<pre class="brush:php"> 

define( 'OT_THEME_MODE', apply_filters( 'ot_theme_mode', true ) );</pre>
<h1><strong>Step 4</strong></h1>
<p>Create a folder named &#8216;includes&#8217; inside theme folder and create a file name theme-options.php inside it and copy the code from  <a href="http://www.techipost.com/Downloads/theme-options.txt">theme-options</a> inside it. This is the where you will write code to add different pages and menu for your option tree panel.</p>
<p>&nbsp;</p>
<h1><strong>Optional :</strong></h1>
<p>Download Integrated option tree Sample theme from  <a href="http://www.techipost.com/Downloads/OnePager.zip">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2012/09/10/how-to-integrate-optiontree-for-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<enclosure url="http://www.techipost.com/Downloads/OnePager.zip" length="2534400" type="application/zip" /></item>
		<item>
		<title>NeoArts  Business Portfolio Word press theme</title>
		<link>http://www.techipost.com/2012/09/04/neoarts-business-portfolio-word-press-theme/</link>
		<comments>http://www.techipost.com/2012/09/04/neoarts-business-portfolio-word-press-theme/#comments</comments>
		<pubDate>Tue, 04 Sep 2012 18:29:53 +0000</pubDate>
		<dc:creator>Umair Ashraf</dc:creator>
				<category><![CDATA[WordPress themes]]></category>
		<category><![CDATA[WordPress theme]]></category>

		<guid isPermaLink="false">http://www.techipost.com/?p=1018</guid>
		<description><![CDATA[NeoArts  is another word press theme developed by Umair Ashraf .This is the inspiration of the popular (NeoArts Theme) freebie. Its free to download Special Features : Integrated Optiontree administrative panel Animated main navigation of website on accordion style Full Size Dynamic Page Background Image Gallery/Slide Show (2 styles) Scrollable Content Placeholders Multi-column Content Layout [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.techipost.com/wp-content/uploads/2012/09/portfolio-business-wordpress-theme.jpg"><img class="size-full wp-image-1044" title="portfolio-business-wordpress-theme" src="http://www.techipost.com/wp-content/uploads/2012/09/portfolio-business-wordpress-theme.jpg" alt="" width="525" height="349" /></a></p>
<p>NeoArts  is another word press theme developed by Umair Ashraf .This is the inspiration of the popular (NeoArts Theme) freebie. Its free to download</p>
<p><span id="more-1018"></span></p>
<p><strong>Special Features :</strong></p>
<ul>
<li>Integrated Optiontree administrative panel</li>
<li>Animated main navigation of website on accordion style</li>
<li>Full Size Dynamic Page Background</li>
<li>Image Gallery/Slide Show (2 styles)</li>
<li>Scrollable Content Placeholders</li>
<li>Multi-column Content Layout</li>
<li>Contact Form</li>
<li>Animated Effects using CSS (no Flash required)</li>
<li>Browser Compatibility (all modern browsers)</li>
<li>SEO-friendly Content Design</li>
</ul>
<p>&nbsp;</p>
<p><a href="http://neoart.techipost.com">Demo </a></p>
<p><a href="http://www.techipost.com/Downloads/NeoArts.zip">Download Theme</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techipost.com/2012/09/04/neoarts-business-portfolio-word-press-theme/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<enclosure url="http://www.techipost.com/Downloads/NeoArts.zip" length="3602591" type="application/zip" /></item>
	</channel>
</rss>
