<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>あらびき林檎。 &#187; AlertBox</title>
	<atom:link href="http://splitchin.com/tech/tag/alertbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://splitchin.com/tech</link>
	<description>Macや, iPhoneでの,Webデザイン,アプリ開発などを綴ってます。</description>
	<lastBuildDate>Sat, 04 Sep 2010 15:49:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPhoneアプリ　アラートボックスを表示する。</title>
		<link>http://splitchin.com/tech/2010/01/17/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e3%82%a2%e3%83%a9%e3%83%bc%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/01/17/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e3%82%a2%e3%83%a9%e3%83%bc%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%80%82/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 07:13:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Object-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK 3]]></category>
		<category><![CDATA[AlertBox]]></category>
		<category><![CDATA[iPhoneアプリ]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=745</guid>
		<description><![CDATA[				安いインクをお探しですか？
				
				
				AlertBoxAppDelegate.h
				
#import &#60;UIKit/UIKit.h&#62;

@class AlertBoxViewC [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://px.a8.net/svt/ejp?a8mat=1NLRJC+3F8SJM+20QC+63OYA" target="_blank">安いインクをお探しですか？</a><br />
				<img border="0" width="1" height="1" src="http://www11.a8.net/0.gif?a8mat=1NLRJC+3F8SJM+20QC+63OYA" alt=""><br />
				<img class="alignnone size-full wp-image-750" title="alert" src="http://splitchin.com/tech/wp-content/uploads/2010/01/alert.png" alt="iPhone AlertBox" width="200" height="269" /></p>
				<p><strong>AlertBoxAppDelegate.h</strong></p>
				<pre class="brush: cpp;">
#import &lt;UIKit/UIKit.h&gt;

@class AlertBoxViewController;
@interface AlertBoxAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
    UIWindow *window;
	AlertBoxViewController *viewController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet AlertBoxViewController *viewController;

@end
</pre>
				<p><strong>AlertBoxViewController.h</strong></p>
				<pre class="brush: cpp;">
#import &lt;UIKit/UIKit.h&gt;

@interface AlertBoxViewController : UIViewController {
}
- (IBAction) displayView:(id) sender;

@end
</pre>
				<p><strong>AlertBoxViewController.m</strong></p>
				<pre class="brush: cpp;">
//アラートボックスを表示するdisplayViewメソッド
-(IBAction) displayView:(id) sender{

    UIAlertView *alert = [[UIAlertView alloc]
						  initWithTitle:@&quot;アラート画面&quot;
						  message:@&quot;ボタンを押しました&quot;
						  delegate:self
						  cancelButtonTitle:@&quot;閉じる&quot;
						  otherButtonTitles:nil];
    [alert show];
    [alert release];
}
</pre>
				<p>後は、InterfaceBuilderで、Alertを表示させるトリガーのボタンと、<br />
				File&#8217;s OwnerをCtrl＋ドラッグで結んで、「displayView」を結びます。</p>
				<p><!-- amazon --></p>
				<div class="amazon-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4797346809" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /amazon --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/17/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e3%82%a2%e3%83%a9%e3%83%bc%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
