<?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: Custom UIAlertView (Color chooser)</title>
	<atom:link href="http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/</link>
	<description>...just some of my thoughts.</description>
	<lastBuildDate>Fri, 20 Aug 2010 13:33:09 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Santosh</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-2/#comment-189</link>
		<dc:creator>Santosh</dc:creator>
		<pubDate>Fri, 20 Aug 2010 13:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-189</guid>
		<description>Thanks for your great tutorial skylar but  can&#039;t we increase the width of an alert. In my project  i need to increase the width of an alert. I will be  happy if u can help me.</description>
		<content:encoded><![CDATA[<p>Thanks for your great tutorial skylar but  can&#8217;t we increase the width of an alert. In my project  i need to increase the width of an alert. I will be  happy if u can help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dskdz</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-2/#comment-186</link>
		<dc:creator>dskdz</dc:creator>
		<pubDate>Tue, 03 Aug 2010 16:14:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-186</guid>
		<description>How would I access the components that are within the UIAlertView?</description>
		<content:encoded><![CDATA[<p>How would I access the components that are within the UIAlertView?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fgerike</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-2/#comment-183</link>
		<dc:creator>fgerike</dc:creator>
		<pubDate>Thu, 22 Jul 2010 16:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-183</guid>
		<description>Hy!
I&#039;m a beginner, so what is the correct code for&quot;doSomethingWithColor&quot;?

I want to change the uiview color.

Thank you for help!</description>
		<content:encoded><![CDATA[<p>Hy!<br />
I&#8217;m a beginner, so what is the correct code for&#8221;doSomethingWithColor&#8221;?</p>
<p>I want to change the uiview color.</p>
<p>Thank you for help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sahil Goenka</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-2/#comment-178</link>
		<dc:creator>Sahil Goenka</dc:creator>
		<pubDate>Thu, 08 Jul 2010 21:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-178</guid>
		<description>how can i set the frame of uialert withoust using custom alert method</description>
		<content:encoded><![CDATA[<p>how can i set the frame of uialert withoust using custom alert method</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ansonlogz</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-2/#comment-177</link>
		<dc:creator>ansonlogz</dc:creator>
		<pubDate>Tue, 29 Jun 2010 10:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-177</guid>
		<description>I embedded uitextview into uialertview,but it didn&#039;t work in SDK4,nothing can input to the uitextview. I don&#039;t know what&#039;s wrong?</description>
		<content:encoded><![CDATA[<p>I embedded uitextview into uialertview,but it didn&#8217;t work in SDK4,nothing can input to the uitextview. I don&#8217;t know what&#8217;s wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AustinLee</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-2/#comment-176</link>
		<dc:creator>AustinLee</dc:creator>
		<pubDate>Sun, 27 Jun 2010 14:31:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-176</guid>
		<description>Hi Skylar, thanks very much, I&#039;ll check the code you provided, and also I&#039;ve posted my code to my blog, if you have time, could help to check it? thanks again.</description>
		<content:encoded><![CDATA[<p>Hi Skylar, thanks very much, I&#8217;ll check the code you provided, and also I&#8217;ve posted my code to my blog, if you have time, could help to check it? thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skylar</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-1/#comment-175</link>
		<dc:creator>Skylar</dc:creator>
		<pubDate>Sat, 26 Jun 2010 07:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-175</guid>
		<description>AustinLee, without seeing code, I can&#039;t say for certain what is causing your problem.  It seems to me that instead of destroying each alert after use, you are reusing the same alert.  If this is the case, then you can throw a -[setNeedsLayout] call wherever appropriate in your code.  However, you should be creating a new alert each time.

Of course, my diagnosis may be wrong, which is why this would be tough to diagnose with just a screenshot.

When I needed to create a UIAlertView with a text field, I subclassed UIAlertView into a new object called UITextFieldAlert.  This object behaved the same as UIAlertview except it had the addition of an text field, and the ability to set an object as the delegate of the text field.

You can see the code for UITextFieldAlert in action by compiling the source code here: http://github.com/SkylarEC/ConnectSome  It should compile without warnings errors or leaks.  If you find any, please let me know.  To know what I&#039;m doing, take a look at the code.  The code for usage of the UITextFieldAlert object is located in UIDualTablesView.

Videos of the app throughout various stages of its creation are available at http://www.skylarcantu.com/videos/CSPreview/</description>
		<content:encoded><![CDATA[<p>AustinLee, without seeing code, I can&#8217;t say for certain what is causing your problem.  It seems to me that instead of destroying each alert after use, you are reusing the same alert.  If this is the case, then you can throw a -[setNeedsLayout] call wherever appropriate in your code.  However, you should be creating a new alert each time.</p>
<p>Of course, my diagnosis may be wrong, which is why this would be tough to diagnose with just a screenshot.</p>
<p>When I needed to create a UIAlertView with a text field, I subclassed UIAlertView into a new object called UITextFieldAlert.  This object behaved the same as UIAlertview except it had the addition of an text field, and the ability to set an object as the delegate of the text field.</p>
<p>You can see the code for UITextFieldAlert in action by compiling the source code here: <a href="http://github.com/SkylarEC/ConnectSome" rel="nofollow">http://github.com/SkylarEC/ConnectSome</a>  It should compile without warnings errors or leaks.  If you find any, please let me know.  To know what I&#8217;m doing, take a look at the code.  The code for usage of the UITextFieldAlert object is located in UIDualTablesView.</p>
<p>Videos of the app throughout various stages of its creation are available at <a href="http://www.skylarcantu.com/videos/CSPreview/" rel="nofollow">http://www.skylarcantu.com/videos/CSPreview/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AustinLee</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-1/#comment-174</link>
		<dc:creator>AustinLee</dc:creator>
		<pubDate>Sat, 26 Jun 2010 06:28:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-174</guid>
		<description>this is really great, I did as what you said, but when the alert view shows up again, the button goes back to its original position, do you know why? you can check the picture in my blog: http://disordertomorrow.blogspot.com/2010/06/wired-thing-after-adding-subview-to.html</description>
		<content:encoded><![CDATA[<p>this is really great, I did as what you said, but when the alert view shows up again, the button goes back to its original position, do you know why? you can check the picture in my blog: <a href="http://disordertomorrow.blogspot.com/2010/06/wired-thing-after-adding-subview-to.html" rel="nofollow">http://disordertomorrow.blogspot.com/2010/06/wired-thing-after-adding-subview-to.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pierre</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-1/#comment-173</link>
		<dc:creator>pierre</dc:creator>
		<pubDate>Sun, 20 Jun 2010 15:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-173</guid>
		<description>Thanks for the above, what an eye opener.
I want to add an uilertview into my popover in my iPad app.
currently the uialertview screen appear into the center of the screen, my popover is on the left hand side corner
thanks</description>
		<content:encoded><![CDATA[<p>Thanks for the above, what an eye opener.<br />
I want to add an uilertview into my popover in my iPad app.<br />
currently the uialertview screen appear into the center of the screen, my popover is on the left hand side corner<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skylar</title>
		<link>http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/comment-page-1/#comment-170</link>
		<dc:creator>Skylar</dc:creator>
		<pubDate>Sun, 02 May 2010 04:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=193#comment-170</guid>
		<description>Fast, considering I pulled this out of an actual AppStore app that I made ( http://download.pockettouch.net ), I have no shareable project files.  However, all the relevant code is available in this post.  

As far as adding a UIImage goes, that&#039;s simple.  You&#039;d add the UIImage the same way that you&#039;d add the previewView in the above sample.  However, if I were making an image view alert view, I&#039;d create it as a new object, a UIImageAlertView or UIImageViewAlertView, whichever makes more sense.  I&#039;d use change the init method to be something more like 
-initWithTitle:message:image:delegate:cancelButtonTitle:otherButtonTitles:

I&#039;d have that initialization method set a image property of the alert view subclass.  I&#039;d override the property setter to have the method set the image as ivar and also calculate the height and width of the image which would be set as separate properties.  The image property, of course, would be so that you can change the image at any point without having to destroy the alert and create a new one.  

During the -layoutSubviews method, simply refer to the stored image height and width to set the size of the UIImageView.  And, in -drawRect:, go ahead and set the image to the UIImageView&#039;s .image property.</description>
		<content:encoded><![CDATA[<p>Fast, considering I pulled this out of an actual AppStore app that I made ( <a href="http://download.pockettouch.net" rel="nofollow">http://download.pockettouch.net</a> ), I have no shareable project files.  However, all the relevant code is available in this post.  </p>
<p>As far as adding a UIImage goes, that&#8217;s simple.  You&#8217;d add the UIImage the same way that you&#8217;d add the previewView in the above sample.  However, if I were making an image view alert view, I&#8217;d create it as a new object, a UIImageAlertView or UIImageViewAlertView, whichever makes more sense.  I&#8217;d use change the init method to be something more like<br />
-initWithTitle:message:image:delegate:cancelButtonTitle:otherButtonTitles:</p>
<p>I&#8217;d have that initialization method set a image property of the alert view subclass.  I&#8217;d override the property setter to have the method set the image as ivar and also calculate the height and width of the image which would be set as separate properties.  The image property, of course, would be so that you can change the image at any point without having to destroy the alert and create a new one.  </p>
<p>During the -layoutSubviews method, simply refer to the stored image height and width to set the size of the UIImageView.  And, in -drawRect:, go ahead and set the image to the UIImageView&#8217;s .image property.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
