<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Exploring iPhone Graphics Part 1</title>
	<atom:link href="http://idevhub.com/exploring-iphone-graphics-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://idevhub.com/exploring-iphone-graphics-part-1/</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 04:59:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Carol</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-56140</link>
		<dc:creator>Carol</dc:creator>
		<pubDate>Tue, 13 Sep 2011 01:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-56140</guid>
		<description>&gt; CGContextRef ctx = UIGraphicsGetCurrentContext();

Everything compiles without a single warning or error....
but ctx is always NIL.

What would cause that?</description>
		<content:encoded><![CDATA[<p>&gt; CGContextRef ctx = UIGraphicsGetCurrentContext();</p>
<p>Everything compiles without a single warning or error&#8230;.<br />
but ctx is always NIL.</p>
<p>What would cause that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manvita</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-56119</link>
		<dc:creator>manvita</dc:creator>
		<pubDate>Sat, 14 May 2011 13:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-56119</guid>
		<description>hey i need to make an ipad app similar to paint in microsoft but of a very basic level as my college project. Can anyone guide me on how to go about it?</description>
		<content:encoded><![CDATA[<p>hey i need to make an ipad app similar to paint in microsoft but of a very basic level as my college project. Can anyone guide me on how to go about it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iOSanta</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-17507</link>
		<dc:creator>iOSanta</dc:creator>
		<pubDate>Tue, 29 Jun 2010 02:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-17507</guid>
		<description>&lt;em&gt;
Instructions for iPhone 3.2 SDK
&lt;/em&gt;
Do this before starting the tutorial to get it working-

1. Use a &quot;View-based application&quot; from the templates.  This will give you a view controller and a nib.

2.  From the file menu, select new file, and make it a new objective-C class.  Have your  new class subclass UIView instead of NSObject.

3.  In your view controller&#039;s nib file, change the class of your UIView to the new class you just created.  

In your new class you will see the drawRect method commented out.  If you uncomment it and paste in the tutorial code it should now work!</description>
		<content:encoded><![CDATA[<p><em><br />
Instructions for iPhone 3.2 SDK<br />
</em><br />
Do this before starting the tutorial to get it working-</p>
<p>1. Use a &#8220;View-based application&#8221; from the templates.  This will give you a view controller and a nib.</p>
<p>2.  From the file menu, select new file, and make it a new objective-C class.  Have your  new class subclass UIView instead of NSObject.</p>
<p>3.  In your view controller&#8217;s nib file, change the class of your UIView to the new class you just created.  </p>
<p>In your new class you will see the drawRect method commented out.  If you uncomment it and paste in the tutorial code it should now work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-17101</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Mon, 14 Jun 2010 20:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-17101</guid>
		<description>Yes someone please tell us how to actually get this to draw something. Im a newb, how do you &quot;call&quot; the drawRect funciton?</description>
		<content:encoded><![CDATA[<p>Yes someone please tell us how to actually get this to draw something. Im a newb, how do you &#8220;call&#8221; the drawRect funciton?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tank</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-14652</link>
		<dc:creator>Tank</dc:creator>
		<pubDate>Wed, 03 Mar 2010 19:53:45 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-14652</guid>
		<description>maybe there have to be some trick, since you made a Cocoa Touch app from the start?</description>
		<content:encoded><![CDATA[<p>maybe there have to be some trick, since you made a Cocoa Touch app from the start?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tank</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-14651</link>
		<dc:creator>Tank</dc:creator>
		<pubDate>Wed, 03 Mar 2010 19:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-14651</guid>
		<description>Damn I&#039;m getting so mad, that nothing happens if I draw.

1: I make a view based app
2: Go to the View controller .m file
3: Do the DrawRect method

- (void)drawRect:(CGRect)rect
{
    // Get the graphics context and clear it
    CGContextRef ctx = UIGraphicsGetCurrentContext();
    CGContextClearRect(ctx, rect);
    // Draw a red solid square
    CGContextSetRGBFillColor(ctx, 1.0, 0.0, 0.0, 1.0);
    CGContextFillRect(ctx, CGRectMake(10, 10, 50, 50));
}

And nothing happens. I&#039;ve wasted my whole day. Any help?
Should I redraw something? Why doest it draws on my template mede view??? thx</description>
		<content:encoded><![CDATA[<p>Damn I&#8217;m getting so mad, that nothing happens if I draw.</p>
<p>1: I make a view based app<br />
2: Go to the View controller .m file<br />
3: Do the DrawRect method</p>
<p>- (void)drawRect:(CGRect)rect<br />
{<br />
    // Get the graphics context and clear it<br />
    CGContextRef ctx = UIGraphicsGetCurrentContext();<br />
    CGContextClearRect(ctx, rect);<br />
    // Draw a red solid square<br />
    CGContextSetRGBFillColor(ctx, 1.0, 0.0, 0.0, 1.0);<br />
    CGContextFillRect(ctx, CGRectMake(10, 10, 50, 50));<br />
}</p>
<p>And nothing happens. I&#8217;ve wasted my whole day. Any help?<br />
Should I redraw something? Why doest it draws on my template mede view??? thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ye ye ne</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-11868</link>
		<dc:creator>ye ye ne</dc:creator>
		<pubDate>Tue, 08 Dec 2009 10:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-11868</guid>
		<description>hi..somebody
how can i draw a graph in iPhone App
pls HELP ME..!</description>
		<content:encoded><![CDATA[<p>hi..somebody<br />
how can i draw a graph in iPhone App<br />
pls HELP ME..!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Memmakersorg</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-11094</link>
		<dc:creator>Memmakersorg</dc:creator>
		<pubDate>Thu, 12 Nov 2009 20:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-11094</guid>
		<description>Hi,

I&#039;m trying to draw a gauge -- like a speedometer or volt meter.

Do you know of any links that point to source code that I can use as a starting point.

Thanks,

MM.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m trying to draw a gauge &#8212; like a speedometer or volt meter.</p>
<p>Do you know of any links that point to source code that I can use as a starting point.</p>
<p>Thanks,</p>
<p>MM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allen</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-9504</link>
		<dc:creator>Allen</dc:creator>
		<pubDate>Tue, 15 Sep 2009 06:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-9504</guid>
		<description>Very nice tutorial !!!
Allen</description>
		<content:encoded><![CDATA[<p>Very nice tutorial !!!<br />
Allen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoangtuan</title>
		<link>http://idevhub.com/exploring-iphone-graphics-part-1/comment-page-1/#comment-7088</link>
		<dc:creator>hoangtuan</dc:creator>
		<pubDate>Wed, 10 Jun 2009 03:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://trailsinthesand.com/exploring-iphone-graphics-part-1/#comment-7088</guid>
		<description>Please help me !
i make an app like a slide show with back, previous button to change Image one by one. But when i using large image it crash. Now i,m using 64 jpg pics , size~20kb/1pic.

help me or i die :( ! (U can add nick hoangtuanfithou, please)
code like that :

//Init Image Array
-(void)InitImageArray1
{	
	myAnimationImages1 = [[NSMutableArray alloc] init];	
	
	
	for ( int i = 0; i &lt; 24; i++ )
	{
		NSAutoreleasePool *poolArray=[[NSAutoreleasePool alloc] init];
		
		NSString *fileName = [NSString stringWithFormat:@&quot;001 (%d)&quot;,i];
		image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:fileName ofType:@&quot;jpg&quot;]];
		
		[myAnimationImages1 addObject:image];	
		[poolArray release];
	}
	
}

//Change Image
self.mainImage.image = [self.myAnimationImages1 objectAtIndex:animationImageArrIndex];</description>
		<content:encoded><![CDATA[<p>Please help me !<br />
i make an app like a slide show with back, previous button to change Image one by one. But when i using large image it crash. Now i,m using 64 jpg pics , size~20kb/1pic.</p>
<p>help me or i die <img src='http://idevhub.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  ! (U can add nick hoangtuanfithou, please)<br />
code like that :</p>
<p>//Init Image Array<br />
-(void)InitImageArray1<br />
{<br />
	myAnimationImages1 = [[NSMutableArray alloc] init];	</p>
<p>	for ( int i = 0; i &lt; 24; i++ )<br />
	{<br />
		NSAutoreleasePool *poolArray=[[NSAutoreleasePool alloc] init];</p>
<p>		NSString *fileName = [NSString stringWithFormat:@"001 (%d)",i];<br />
		image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:fileName ofType:@&#8221;jpg&#8221;]];</p>
<p>		[myAnimationImages1 addObject:image];<br />
		[poolArray release];<br />
	}</p>
<p>}</p>
<p>//Change Image<br />
self.mainImage.image = [self.myAnimationImages1 objectAtIndex:animationImageArrIndex];</p>
]]></content:encoded>
	</item>
</channel>
</rss>

