<?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/"
	>

<channel>
	<title>sixtemia · iPhone &#38; Web Studio · Journal</title>
	<atom:link href="http://www.sixtemia.com/journal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sixtemia.com/journal</link>
	<description>iPhone &#38; Web Studio</description>
	<pubDate>Fri, 27 Aug 2010 08:13:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPhone icon rounded corner exact radius</title>
		<link>http://www.sixtemia.com/journal/2010/08/27/iphone-icon-rounded-corner-exact-radius/</link>
		<comments>http://www.sixtemia.com/journal/2010/08/27/iphone-icon-rounded-corner-exact-radius/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 08:13:10 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Apps Design]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=234</guid>
		<description><![CDATA[This might be usefull for all those designers who want to create great fancy application icons.
The exact radius for the icon rounded corners is:

iPhone OS 3.x(57&#215;57) is 9 pixels
iPhone OS 4.0(114&#215;114) I guess it&#8217;s 18 pixels but I&#8217;m not sure of that

The exact radius for the Artwork(512&#215;512) is 80 pixels.
]]></description>
			<content:encoded><![CDATA[<p>This might be usefull for all those designers who want to create great fancy application icons.</p>
<p>The exact radius for the icon rounded corners is:</p>
<ul>
<li>iPhone OS 3.x(57&#215;57) is 9 pixels</li>
<li>iPhone OS 4.0(114&#215;114) I guess it&#8217;s 18 pixels but I&#8217;m not sure of that</li>
</ul>
<p>The exact radius for the Artwork(512&#215;512) is 80 pixels.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/08/27/iphone-icon-rounded-corner-exact-radius/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Zooming an image using UIScrollView</title>
		<link>http://www.sixtemia.com/journal/2010/08/25/zooming-an-image-using-uiscrollview/</link>
		<comments>http://www.sixtemia.com/journal/2010/08/25/zooming-an-image-using-uiscrollview/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 07:36:58 +0000</pubDate>
		<dc:creator>Tesh</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=231</guid>
		<description><![CDATA[To add the zooming in the scrolling part you can do this by following these steps:
   1. Make the MyViewController a UIScrollViewDelegate. Do this by adding  in the @interface declaration in the .h file.
   2. Create a UIImageView instance variable in the @interface of MyViewController. We will need this to [...]]]></description>
			<content:encoded><![CDATA[<p>To add the zooming in the scrolling part you can do this by following these steps:</p>
<p>   1. Make the MyViewController a UIScrollViewDelegate. Do this by adding <uiscrollviewdelegate> in the @interface declaration in the .h file.<br />
   2. Create a UIImageView instance variable in the @interface of MyViewController. We will need this to specify it to the Delegate which object is to be zoomed. Add the @property and @synthesize for this image in relevant places. I used scroll2ImageView as the name of the instance.<br />
   3. In the viewDidLoad Method in myViewController.m class replace the code for setting up scrollView2 with this code. </p>
<p><code>[scrollView2 setBackgroundColor:[UIColor blackColor]];<br />
[scrollView2 setCanCancelContentTouches:NO];<br />
scrollView2.clipsToBounds = YES;    // default is NO, we want to restrict drawing within our scrollview<br />
scrollView2.indicatorStyle = UIScrollViewIndicatorStyleWhite;<br />
scroll2ImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image0.jpg"]];<br />
[scrollView2 addSubview:scroll2ImageView];<br />
[scrollView2 setContentSize:CGSizeMake(scroll2ImageView.frame.size.width, scroll2ImageView.frame.size.height)];<br />
scrollView2.minimumZoomScale = 1;<br />
scrollView2.maximumZoomScale = 3;<br />
scrollView2.delegate = self;<br />
[scrollView2 setScrollEnabled:YES];<br />
</code></p>
<p>We made three changes here. First we replaced the local instance of imageView with the class instance scroll2ImageView. We will need this in the next step. Second we added min/max zoom scale for the image. Third we assigned the scrollView2 delegate to self.</p>
<p>  4.  Last thing we need to do is tell the delegate wat all to zoom when it detects a zoom in/out pinch. We add the following method for this.</p>
<p><code>-(UIView *) viewForZoomingInScrollView:(UIScrollView *)scrollView {<br />
    return scroll2ImageView;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/08/25/zooming-an-image-using-uiscrollview/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New iPhone App: Uterqüe</title>
		<link>http://www.sixtemia.com/journal/2010/07/16/new-iphone-app-uterque/</link>
		<comments>http://www.sixtemia.com/journal/2010/07/16/new-iphone-app-uterque/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 16:26:24 +0000</pubDate>
		<dc:creator>Tesh</dc:creator>
		
		<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=227</guid>
		<description><![CDATA[Today a new fashion brand trust in our services. We develop a new iPhone app for Uterqüe, under Inditex  license. We’ve worked closer with our client Abuse to make them a completely success.
This app is a pocket catalogues of all the products that can be found in each Uterqüe store, organized by sections which [...]]]></description>
			<content:encoded><![CDATA[<p>Today a new fashion brand trust in our services. We develop a new iPhone app for Uterqüe, under Inditex  license. We’ve worked closer with our client Abuse to make them a completely success.</p>
<p>This app is a pocket catalogues of all the products that can be found in each Uterqüe store, organized by sections which is very useful for all customers, but one of the most important features of the application is the update frequency: Uterqüe’s team will update the content weekly to keep you informed about all its new products.</p>
<p>Now the user can use a Augmented Reality or Google maps functionalities to search his closest store. </p>
<p>I would like to take this post to talk about mobile marketing posibilities, there is a lot of companies around the world using mobile marketing solutions to promote their products. iPhone and large set of latest mobile devices has the multimedia capabilities to provide a very easy, clear and useful channel of communication between companies and it’s potential customers.</p>
<p>The fact of Uterque releasing a set of applications available in most important plattforms(iPhone, Android, Nokia, Blackberry,…) it’s just another example of how useful can be for the companies to keep his customers updated with it’s latest products through a maketing mobile application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/07/16/new-iphone-app-uterque/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to programatically load nib files</title>
		<link>http://www.sixtemia.com/journal/2010/07/07/how-to-programatically-load-nib-files/</link>
		<comments>http://www.sixtemia.com/journal/2010/07/07/how-to-programatically-load-nib-files/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 14:49:49 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=219</guid>
		<description><![CDATA[A few days ago I was asked if it&#8217;s possible to load nib files programatically without being loaded and initialized from UIViewController&#8217;s initWithNib&#8230; message.
I didn&#8217;t knew the answer at this moment but once I got to the office I decided to look for it. After a few minutes googling I found the answer: it&#8217;s possible, [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I was asked if it&#8217;s possible to load nib files programatically without being loaded and initialized from <strong>UIViewController&#8217;s initWithNib&#8230;</strong> message.</p>
<p>I didn&#8217;t knew the answer at this moment but once I got to the office I decided to look for it. After a few minutes googling I found the answer: it&#8217;s possible, and here is the source code to do it.</p>
<p><code>NSArray *topLevelObjs = nil;<br />
topLevelObjs = [[NSBundle mainBundle] loadNibNamed:nibNameOrNil owner:self options:nil];<br/><br />
if (topLevelObjs == nil)<br />
&nbsp;&nbsp;&nbsp;NSLog(@&#8221;Error! Could not load nib file.\n&#8221;);<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/07/07/how-to-programatically-load-nib-files/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to change MFMailComposeViewController&#8217;s title</title>
		<link>http://www.sixtemia.com/journal/2010/07/02/how-to-change-mfmailcomposeviewcontrollers-title/</link>
		<comments>http://www.sixtemia.com/journal/2010/07/02/how-to-change-mfmailcomposeviewcontrollers-title/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 10:24:06 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=213</guid>
		<description><![CDATA[There are a lot of things in the iPhone SDK that should be easy to do but they are not, and this is one of them. Changing the Mail Compose View Controller title should be as easy as:
[myMailComposerVC setTitle:@"My title"]
but if you do that you don&#8217;t get anything, you still get the &#8220;NEW MESSAGE&#8221; text.
The [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of things in the iPhone SDK that should be easy to do but they are not, and this is one of them. Changing the Mail Compose View Controller title should be as easy as:</p>
<p><code>[myMailComposerVC setTitle:@"My title"]</code></p>
<p>but if you do that you don&#8217;t get anything, you still get the &#8220;NEW MESSAGE&#8221; text.<br />
The way I found to access it is the following. Maybe there is another/better don&#8217;t know but this one definitely works:</p>
<p><code>[[[[myMailComposerVC navigationBar] items] objectAtIndex:0] setTitle:@&#8221;My title&#8221;];</code></p>
<p>Hope it helps someone as much as it helped me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/07/02/how-to-change-mfmailcomposeviewcontrollers-title/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Application icon sizes</title>
		<link>http://www.sixtemia.com/journal/2010/07/01/application-sizes/</link>
		<comments>http://www.sixtemia.com/journal/2010/07/01/application-sizes/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 12:10:24 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=203</guid>
		<description><![CDATA[With the new device releases the number of icons of one applicaction has incresead considerably and it&#8217;s impossible for me to remember all of them. So just in cas someone is in the same situation as me here is a list of all of them.
App Store Icon

512&#215;512

Application Icon

114&#215;114 iPhone 4
	72&#215;72 iPad
57&#215;57 older iPhones

Spotlight Search Results [...]]]></description>
			<content:encoded><![CDATA[<p>With the new device releases the number of icons of one applicaction has incresead considerably and it&#8217;s impossible for me to remember all of them. So just in cas someone is in the same situation as me here is a list of all of them.</p>
<p><strong>App Store Icon</strong></p>
<ul>
<li>512&#215;512</li>
</ul>
<p><strong>Application Icon</strong></p>
<ul>
<li>114&#215;114 iPhone 4</li>
<li>	72&#215;72 iPad</li>
<li>57&#215;57 older iPhones</li>
</ul>
<p><strong>Spotlight Search Results and Settings Icon</strong></p>
<ul>
<li>58&#215;58 Spotlight/Settings iPhone 4</li>
<li>50&#215;50 Spotlight - iPad</li>
<li>29&#215;29 Settings - iPad/older iPhones</li>
</ul>
<p><strong>Document Icon</strong></p>
<ul>
<li>44&#215;58 iPhone 4</li>
<li>320&#215;320 and 64&#215;64 iPad</li>
<li>22&#215;29 older iPhones</li>
</ul>
<p>I found this usefull <a href="http://blog.cocoia.com/2010/iphone-4-icon-psd-file/"><strong>PSD</strong></a> in <a href="http://blog.cocoia.com/2010/iphone-4-icon-psd-file/">&#8220;Cocoia Blog&#8221;</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/07/01/application-sizes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Take advantage of new retina display in your iPhone 3.x applications</title>
		<link>http://www.sixtemia.com/journal/2010/07/01/take-advantage-of-new-retina-display-in-your-iphone-3x-applications/</link>
		<comments>http://www.sixtemia.com/journal/2010/07/01/take-advantage-of-new-retina-display-in-your-iphone-3x-applications/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 11:57:01 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=198</guid>
		<description><![CDATA[There are a lot of applications in the appstore with amazing graphics that look great in the iPhone OS 3.x, but it doesn&#8217;t look so great using the new retina display of the new iPhone. A lot of them have been released as new applications again but named the same with an &#8220;HD&#8221; at the [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of applications in the appstore with amazing graphics that look great in the iPhone OS 3.x, but it doesn&#8217;t look so great using the new retina display of the new iPhone. A lot of them have been released as new applications again but named the same with an &#8220;HD&#8221; at the end. </p>
<p>You might wonder if that is because there is no easy way to build an application with both HD graphical assets and nonHD graphical assests that looks great on all iPhone OS versions. But that&#8217;s not true. Recently I found out a very esy way to do that:</p>
<p><strong>UIKit supports the automatic loading of high-resolution variants (@2x) of your images.</strong></p>
<p>The &#8220;only&#8221; thing you have to do is generate HD graphical images of each existing image in your current project and name it the same but with an @2x in the end. i.e:</p>
<ul><strong>previous image name:</strong> logo.png</ul>
<ul><strong>HD image name:</strong> logo@2x.png</ul>
<p>once you have all the images just import to your existing project and compile it again using the same iPhone OS version you used to compile the nonHD version of the application, and submit it to the store. </p>
<p>Et voilà! The iOS 4 will handle it automatically to display your new HD images. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/07/01/take-advantage-of-new-retina-display-in-your-iphone-3x-applications/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to encrypt/decrypt using AES 256</title>
		<link>http://www.sixtemia.com/journal/2010/06/30/how-to-encryptdecrypt-using-aes/</link>
		<comments>http://www.sixtemia.com/journal/2010/06/30/how-to-encryptdecrypt-using-aes/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 07:44:00 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=151</guid>
		<description><![CDATA[Here is some code I found in iphonedevelopment.blogspot.com on how to extend NSMutableData to encrypt and decrypt using AES 256 encryption standard, very useful.

#import &#60;CommonCrypto/CommonCryptor.h&#62;


@implementation  NSMutableData (AES256)
- (BOOL) encryptWithKey: (NSString *) key {
// 'key' should be 32 bytes for AES256, will be null-padded otherwise
char * keyPtr[kCCKeySizeAES256+1]; // room for terminator (unused)
bzero( keyPtr, sizeof(keyPtr) ); [...]]]></description>
			<content:encoded><![CDATA[<p>Here is some code I found in <a href="http://iphonedevelopment.blogspot.com">iphonedevelopment.blogspot.com</a> on how to extend NSMutableData to encrypt and decrypt using AES 256 encryption standard, very useful.</p>
<p><code><br />
#import &lt;CommonCrypto/CommonCryptor.h&gt;<br />
</code></p>
<p><code><br />
@implementation  NSMutableData (AES256)<br />
- (BOOL) encryptWithKey: (NSString *) key {<br />
// 'key' should be 32 bytes for AES256, will be null-padded otherwise<br />
char * keyPtr[kCCKeySizeAES256+1]; // room for terminator (unused)<br />
bzero( keyPtr, sizeof(keyPtr) );  // fill with zeroes (for padding)<br/><br />
// fetch key data<br />
[key getCString: keyPtr maxLength: sizeof(keyPtr)  encoding: NSUTF8StringEncoding];<br/><br />
// encrypts in-place, since  this is a mutable data object<br />
size_t numBytesEncrypted = 0;<br />
CCCryptorStatus result = CCCrypt( kCCEncrypt, , kCCAlgorithmAES128,  kCCOptionPKCS7Padding,<br />
keyPtr, kCCKeySizeAES256,<br />
NULL /* initialization vector (optional) */,<br />
[self mutableBytes], [self length], /* input */<br />
[self mutableBytes], [self length], /* output */<br />
&amp;numBytesEncrypted );<br/><br />
      return ( result == kCCSuccess );<br />
}<br />
<br/><br/><br />
-  (BOOL) decryptWithKey: (NSString *) key {<br />
// &#8216;key&#8217; should be 32  bytes for AES256, will be null-padded otherwise<br />
char *  keyPtr[kCCKeySizeAES256+1]; // room for terminator (unused)<br />
bzero(  keyPtr, sizeof(keyPtr) );  // fill with zeroes (for padding)<br/><br />
//  fetch key data<br />
[key getCString: keyPtr maxLength: sizeof(keyPtr)  encoding: NSUTF8StringEncoding];<br/><br />
// encrypts in-place, since  this is a mutable data object<br />
size_t numBytesEncrypted = 0;<br />
CCCryptorStatus result = CCCrypt( kCCDecrypt, , kCCAlgorithmAES128,  kCCOptionPKCS7Padding,<br />
keyPtr, kCCKeySizeAES256,<br />
NULL /* initialization vector (optional) */,<br />
[self mutableBytes], [self length], /* input */<br />
[self mutableBytes], [self length], /* output */<br />
&amp;numBytesEncrypted );<br/><br />
return ( result ==  kCCSuccess );<br />
}<br />
@end<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/06/30/how-to-encryptdecrypt-using-aes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NSString to NSData</title>
		<link>http://www.sixtemia.com/journal/2010/06/30/nsstring-to-nsdata-2/</link>
		<comments>http://www.sixtemia.com/journal/2010/06/30/nsstring-to-nsdata-2/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 07:32:09 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=148</guid>
		<description><![CDATA[another one usefull

NSData *myData;
myData = [myString dataUsingEncoding: NSUTF8StringEncoding];

]]></description>
			<content:encoded><![CDATA[<p>another one usefull</p>
<p><code><br />
NSData *myData;<br />
myData = [myString dataUsingEncoding: NSUTF8StringEncoding];<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/06/30/nsstring-to-nsdata-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NSData to NSString</title>
		<link>http://www.sixtemia.com/journal/2010/06/30/nsstring-to-nsdata/</link>
		<comments>http://www.sixtemia.com/journal/2010/06/30/nsstring-to-nsdata/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 07:29:07 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=143</guid>
		<description><![CDATA[here is a useful snippet

NSString *myStr;
myStr = [[[NSString alloc] initWithData:myData encoding:NSUTF8StringEncoding] autorelease];

]]></description>
			<content:encoded><![CDATA[<p>here is a useful snippet</p>
<p><code><br />
NSString *myStr;<br />
myStr = [[[NSString alloc] initWithData:myData encoding:NSUTF8StringEncoding] autorelease];<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/06/30/nsstring-to-nsdata/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Debugging with NSLog: format specifiers</title>
		<link>http://www.sixtemia.com/journal/2010/06/29/debugging-with-nslog-format-specifiers/</link>
		<comments>http://www.sixtemia.com/journal/2010/06/29/debugging-with-nslog-format-specifiers/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 14:33:47 +0000</pubDate>
		<dc:creator>Tesh</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=136</guid>
		<description><![CDATA[NSLog is a Foundation kit function for printing debug statements to the console. It&#8217;s very helpful to debug your applications, but sometimes you need to print some special kind of data. These are its format specifiers:
%@     Object
%d, %i signed int
%u     unsigned int
%f     float/double
%x, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cocoadev.com/index.pl?NSLog"></a>NSLog is a Foundation kit function for printing debug statements to the console. It&#8217;s very helpful to debug your applications, but sometimes you need to print some special kind of data. These are its format specifiers:</p>
<p><code><strong>%@</strong>     Object<br />
<strong>%d, %i</strong> signed int<br />
<strong>%u</strong>     unsigned int<br />
<strong>%f</strong>     float/double<br />
<strong>%x, %X</strong> hexadecimal int<br />
<strong>%o  </strong>   octal int<br />
<strong>%zu </strong>   size_t<br />
<strong>%p </strong>    pointer<br />
<strong>%e</strong>     float/double (in scientific notation)<br />
<strong>%g</strong>     float/double (as %f or %e, depending on value)<br />
<strong>%s</strong>     C string (bytes)<br />
<strong>%S</strong>     C string (unichar)<br />
<strong>%.*s</strong>   Pascal string (requires two arguments, pass pstr[0] as the first, pstr+1 as the second)<br />
<strong>%c</strong>     character<br />
<strong>%C </strong>    unichar<br />
<strong>%lld</strong>   long long<br />
<strong>%llu </strong>  unsigned long long<br />
<strong>%Lf </strong>   long double<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/06/29/debugging-with-nslog-format-specifiers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>UIImage negative color effect</title>
		<link>http://www.sixtemia.com/journal/2010/06/23/uiimage-negative-color-effect/</link>
		<comments>http://www.sixtemia.com/journal/2010/06/23/uiimage-negative-color-effect/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 08:10:41 +0000</pubDate>
		<dc:creator>Tesh</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=130</guid>
		<description><![CDATA[It&#8217;s simple to convert an UIImage to his negative image. Only use this code:

UIGraphicsBeginImageContext(renderImage.size);
CGContextSetBlendMode(UIGraphicsGetCurrentContext(), kCGBlendModeCopy);
[renderImage drawInRect:CGRectMake(0, 0, renderImage.size.width, renderImage.size.height)];
CGContextSetBlendMode(UIGraphicsGetCurrentContext(), kCGBlendModeDifference);
CGContextSetFillColorWithColor(UIGraphicsGetCurrentContext(),[UIColor whiteColor].CGColor);
CGContextFillRect(UIGraphicsGetCurrentContext(), CGRectMake(0, 0, renderImage.size.width, renderImage.size.height));
renderImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s simple to convert an UIImage to his negative image. Only use this code:</p>
<p><code><br />
UIGraphicsBeginImageContext(renderImage.size);<br />
CGContextSetBlendMode(UIGraphicsGetCurrentContext(), kCGBlendModeCopy);<br />
[renderImage drawInRect:CGRectMake(0, 0, renderImage.size.width, renderImage.size.height)];<br />
CGContextSetBlendMode(UIGraphicsGetCurrentContext(), kCGBlendModeDifference);<br />
CGContextSetFillColorWithColor(UIGraphicsGetCurrentContext(),[UIColor whiteColor].CGColor);<br />
CGContextFillRect(UIGraphicsGetCurrentContext(), CGRectMake(0, 0, renderImage.size.width, renderImage.size.height));<br />
renderImage = UIGraphicsGetImageFromCurrentImageContext();<br />
UIGraphicsEndImageContext();<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/06/23/uiimage-negative-color-effect/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FCBNEWS &amp; RMNEWS updated to v2.0</title>
		<link>http://www.sixtemia.com/journal/2010/04/07/fcbnews-rmnews-updated-to-v20/</link>
		<comments>http://www.sixtemia.com/journal/2010/04/07/fcbnews-rmnews-updated-to-v20/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 15:33:37 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=122</guid>
		<description><![CDATA[A few days ago we updated both applications to v2.0.
There are no big changes on the applications, the most important one is we removed the in app purchase service of the application, but we added we&#8217;ve added adMob advertisements. So the application is completely free right now
In this version you&#8217;ll also find:

Some minor performance issues [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago we updated both applications to v2.0.</p>
<p>There are no big changes on the applications, the most important one is we removed the in app purchase service of the application, but we added we&#8217;ve added adMob advertisements. So the application is completely free right now</p>
<p>In this version you&#8217;ll also find:</p>
<ul>
<li>Some minor performance issues fixed.</li>
<li>Updating bug when launching the application fixed.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/04/07/fcbnews-rmnews-updated-to-v20/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FCBNEWS &amp; RMNEWS updated</title>
		<link>http://www.sixtemia.com/journal/2010/01/21/fcbnews-rmnews-updated/</link>
		<comments>http://www.sixtemia.com/journal/2010/01/21/fcbnews-rmnews-updated/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 09:41:59 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=116</guid>
		<description><![CDATA[A few days ago we updated both applications to v1.2, so let&#8217;s take a look at what&#8217;s new on that versions:

Loading time improved: now it&#8217;s much more faster.
News quick summary: to read while waiting for the website to load.
New share functionality: send the news links you find interesting
	to all of your friends by email.
Interface redesign: [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago we updated both applications to <strong>v1.2</strong>, so let&#8217;s take a look at what&#8217;s new on that versions:</p>
<ul>
<li>Loading time improved: now it&#8217;s much more faster.</li>
<li>News quick summary: to read while waiting for the website to load.</li>
<li>New share functionality: send the news links you find interesting<br />
	to all of your friends by email.</li>
<li>Interface redesign: a new set of icons added to make the<br />
	application look more clear and fancy.</li>
<li>New headlines&#8217; styles: to quickly identify which has been read and<br />
	which not.</li>
</ul>
<p>We also want to announce that we are waiting for the approval of the <strong>v2.0</strong> version of both applications which will have some minor changes. I&#8217;m sure you will be wondering why we have moved application version from <strong>1.2</strong> to<strong> 2.0</strong> if there is no big changes on it.<br />
That&#8217;s &#8217;cause <strong>the big changes</strong> are in <strong>the way we are going to sell it</strong>.</p>
<p>From now and on you&#8217;ll find both applications with a <strong>15 days FREE trial</strong> and <strong>WITHOUT</strong> any kind of <strong>SUBSCRIPTION</strong>. </p>
<p>Once the trial time expires you will be asked to buy the application using the <strong>InAppPurchase</strong> system, so if you liked it, don&#8217;t hesitate to buy it just for .<strong>99 $</strong>, and enjoy the application for the rest of your life.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2010/01/21/fcbnews-rmnews-updated/feed/</wfw:commentRss>
		</item>
		<item>
		<title>2 New iPhone Apps: ZARA &amp; ZARA HOME</title>
		<link>http://www.sixtemia.com/journal/2009/12/21/2-new-iphone-apps-zara-zara-home/</link>
		<comments>http://www.sixtemia.com/journal/2009/12/21/2-new-iphone-apps-zara-zara-home/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 17:10:38 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=103</guid>
		<description><![CDATA[Last week two brand new iPhone apps where released, ZARA and ZARA HOME, both under Inditex license. We&#8217;ve worked closer with our client Abuse to make them a completely success, both apps appeared at top lists in just a few days. 
These apps are pocket catalogues of all the products that can be found in [...]]]></description>
			<content:encoded><![CDATA[<p>Last week two brand new iPhone apps where released, <a href="http://itunes.apple.com/es/app/zara/id341323282?mt=8"><strong>ZARA</strong></a> and <a href="http://itunes.apple.com/es/app/zara-home/id344574713?mt=8"><strong>ZARA HOME</strong></a>, both under <a href="http://www.inditex.es/"><strong>Inditex</strong></a> license. We&#8217;ve worked closer with our client <a href="http://www.abuse.es"><strong>Abuse</strong></a> to make them a <strong>completely success</strong>, both apps appeared at top lists in just a few days. </p>
<p>These apps are <strong>pocket catalogues</strong> of all the products that can be found in each ZARA store, organized by sections which is very useful for all customers, but one of the most important features of the application is the <strong>update frequency</strong>: ZARA&#8217;s team will update the content <strong>weekly</strong> to keep you informed about all its new products.</p>
<p>I would like to take this post to talk about <strong>mobile marketing posibilities</strong>, there is a lot of companies around the world using mobile marketing solutions to promote their products. iPhone and large set of latest mobile devices has the multimedia capabilities to provide a <strong>very easy, clear and useful channel of communication</strong> between companies and it&#8217;s potential customers. </p>
<p>The fact of ZARA releasing a set of applications available in most important plattforms(iPhone, Android, Nokia, Blackberry,&#8230;) it&#8217;s just another example of how useful can be for the companies to keep his customers updated with it&#8217;s latest products through a maketing mobile application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2009/12/21/2-new-iphone-apps-zara-zara-home/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New iPhone App: RMNEWS</title>
		<link>http://www.sixtemia.com/journal/2009/12/09/new-iphone-app-rmnews/</link>
		<comments>http://www.sixtemia.com/journal/2009/12/09/new-iphone-app-rmnews/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 15:51:30 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=100</guid>
		<description><![CDATA[We are very proud to announce a brand new application. The RMNEWS application is a news reader about the Real Madrid Club de Fútbol. It keeps you updated with the latest news published about your favorite football club.
We have designed it in a very nice look &#038; feel interface using the club’s colors to make [...]]]></description>
			<content:encoded><![CDATA[<p>We are very proud to announce a brand new application. The RMNEWS application is a news reader about the Real Madrid Club de Fútbol. It keeps you updated with the latest news published about your favorite football club.<br />
We have designed it in a very nice look &#038; feel interface using the club’s colors to make all fans feel the colors while have a good news reading experience.</p>
<p>We wanted to provide the application with the best news quality we could and that’s why we work with the top spanish online press clipping company as a partner that provides us all the application news content. It has more than 2500 online sports sources in 13 languages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2009/12/09/new-iphone-app-rmnews/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CGPoint and other CG variable can store in NSArray</title>
		<link>http://www.sixtemia.com/journal/2009/11/10/cgpoint-and-other-cg-variable-can-store-in-nsarray/</link>
		<comments>http://www.sixtemia.com/journal/2009/11/10/cgpoint-and-other-cg-variable-can-store-in-nsarray/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:45:32 +0000</pubDate>
		<dc:creator>Tesh</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=96</guid>
		<description><![CDATA[Often is possible that we need to store CG variables in NSArray. You can follow this code to do it.
For example we need to store CGPoints. 

NSArray *points = [NSArray arrayWithObjects:
[NSValue valueWithCGPoint:CGPointMake(5.5, 8.3)],
[NSValue valueWithCGPoint:CGPointMake(11.9, 8.5)],
nil];

And when we need to get these points, for example the first point

NSValue *val = [points objectAtIndex:0];
CGPoint p = [val CGPointValue];

]]></description>
			<content:encoded><![CDATA[<p>Often is possible that we need to store CG variables in NSArray. You can follow this code to do it.</p>
<p>For example we need to store CGPoints. </p>
<p><code><br />
NSArray *points = [NSArray arrayWithObjects:<br />
[NSValue valueWithCGPoint:CGPointMake(5.5, 8.3)],<br />
[NSValue valueWithCGPoint:CGPointMake(11.9, 8.5)],<br />
nil];<br />
</code></p>
<p>And when we need to get these points, for example the first point</p>
<p><code><br />
NSValue *val = [points objectAtIndex:0];<br />
CGPoint p = [val CGPointValue];<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2009/11/10/cgpoint-and-other-cg-variable-can-store-in-nsarray/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New iPhone App: FCBNEWS</title>
		<link>http://www.sixtemia.com/journal/2009/10/30/new-iphone-app-fcbnews/</link>
		<comments>http://www.sixtemia.com/journal/2009/10/30/new-iphone-app-fcbnews/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 10:14:55 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=91</guid>
		<description><![CDATA[We are very proud to announce a brand new application. The FCBNEWS application is a news reader about the Futbol Club Barcelona. It keeps you updated with the latest news published about your favorite football club.
We have designed it in a very nice look &#038; feel interface using the club&#8217;s colors to make all fans [...]]]></description>
			<content:encoded><![CDATA[<p>We are very proud to announce a brand new application. The <a href="http://www.sixtemia.com/fcbnews.html"><strong>FCBNEWS</strong></a> application is a news reader about the <strong>Futbol Club Barcelona</strong>. It keeps you updated with the latest news published about your favorite football club.<br />
We have designed it in a<strong> very nice look &#038; feel interface</strong> using the club&#8217;s colors to make all fans feel the colors while have a good news reading experience.</p>
<p>We wanted to provide the application with the <strong>best news quality</strong> we could and that&#8217;s why we work with the <strong>top spanish online press clipping company</strong> as a partner that provides us all the application news content. It has <strong>more than 2500 online sports sources in 13 languages</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2009/10/30/new-iphone-app-fcbnews/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Website Update: Work</title>
		<link>http://www.sixtemia.com/journal/2009/10/30/website-update-works/</link>
		<comments>http://www.sixtemia.com/journal/2009/10/30/website-update-works/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 09:52:02 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[Sixtemia News]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=85</guid>
		<description><![CDATA[Today, we release a new section of our website:Work.
We&#8217;ve been working on this section for a long time and finally we can bring it to you.

Probably you are wondering why we haven&#8217;t done it before, as this is a corporate website it is essential to have a section talking about our work and about the [...]]]></description>
			<content:encoded><![CDATA[<p>Today, we release a new section of our website:<a href="http://www.sixtemia.com/work.html"><strong>Work</strong></a>.<br />
We&#8217;ve been working on this section for a long time and finally we can bring it to you.<br />
<span id="more-85"></span><br />
Probably you are wondering why we haven&#8217;t done it before, as this is a corporate website it is essential to have a section talking about our work and about the applications and developments we make, because each potential customer likes to have a look to the previous works to make sure this is the company he/she is looking for. </p>
<p>The answer to question that is as simple as: <strong>&#8220;we haven&#8217;t done it before because the 90% of our works are confidential&#8221;</strong>. We thought it would be better to wait until we had at least 2 own applications or 2 non-confidential applications on the store.</p>
<p>We want to communicate that we are working on a serial of <strong>&#8220;Football Club News Reader&#8221;</strong> applications based on our <strong>MobileNewsApp engine</strong>. So you could expect more applications on that field before the end of the year. We are also  working on 2 non-confidential projects which are going to be released soon. Because of that serial of events we are pretty sure that now is the best moment to update this website with the <strong>work</strong> section. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2009/10/30/website-update-works/feed/</wfw:commentRss>
		</item>
		<item>
		<title>About EXEC_BAD_ACCESS error</title>
		<link>http://www.sixtemia.com/journal/2009/10/19/about-exec_bad_access-error/</link>
		<comments>http://www.sixtemia.com/journal/2009/10/19/about-exec_bad_access-error/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 08:08:55 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
		
		<category><![CDATA[iPhone Dev SDK]]></category>

		<guid isPermaLink="false">http://www.sixtemia.com/journal/?p=80</guid>
		<description><![CDATA[I know that It&#8217;s been so far since my last post, but I have been very very very busy since then, but I&#8217;m here again, this time to talk about the EXEC_BAD_ACCESS error.
This kind of error is hard to debug, it happens when a message is sent to a released object, but the Xcode debugger [...]]]></description>
			<content:encoded><![CDATA[<p>I know that It&#8217;s been so far since my last post, but I have been very very very busy since then, but I&#8217;m here again, this time to talk about the <strong>EXEC_BAD_ACCESS</strong> error.</p>
<p>This kind of error is hard to debug, it happens when a message is sent to a released object, but the Xcode debugger doesn&#8217;t give any kind of information about which is the released object, because it is already released and it isn&#8217;t allocated in memory anymore, so the debugger doesn&#8217;t know it&#8217;s structure and it only has a pointer to an &#8220;empty&#8221; memory address. As the application can crash at anytime before the object is released it seems to be quite aleatory and sometimes hard to reproduce and trace.<br />
<span id="more-80"></span><br />
So &#8217;cause each <strong>EXEC_BAD_ACCESS</strong> error is different depending on your specific source code, I can&#8217;t give a generic solution, but I can explain you a way to trace it. you should know that exists an environment variable called <strong>NSZombieEnabled</strong>. If you set it to <strong>yes</strong>, Objective-C will leave in memory a dummy object for each deallocated object, then if your application send a message to the zombie object, execution will stop and you will be able to take a look at the stack and see from where the object is called. It can&#8217;t tell you the specific line of your source where the object is released, but it shows you the method where your object is called before being released and this should you get an idea of where the problem is.</p>
<p>So I imagine that now you are wondering hot to set up this variable, so let’s go on. To do it you have to create a new instance variable right clicking on your executable name, inside the executables group on the left side column of your Xcode’s project screen. Then choose the <strong>get info</strong> option. Then tap on the <strong>Arguments tab</strong>. You will see to white boxes, the second one is the one to set up environment variables, so press the <strong>+</strong> symbol under the white box and name the variable <strong>NSZombieEnabled</strong> with the word <strong>YES</strong> as the value. Make sure the checkbox is selected.</p>
<p>So you just have to run your application in debug mode, next time the <strong>EXEC_BAD_ACCESS</strong> occurs, the application will stop and you will see this kind of message in the debugger console:</p>
<p><code>2009-10-19 09:33:00.000 xxxxx[3997:20b] *** -[YourObject retain]: message sent to deallocated instance 0xXXXXXXX</code></p>
<p>Now you are able to click on the debugger and take a look at the stack. You will see some methods in bold, these are the ones you should take a look to review where your object is called after being released.</p>
<p>Remember that you have to <strong>uncheck</strong> the checkbox of the <strong>NSZombieEnabled</strong> variable once you fix the problem, or delete the variable if you prefer, or you will experience memory crashes, because of the zombie objects allocated and never freed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sixtemia.com/journal/2009/10/19/about-exec_bad_access-error/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
