<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;A04BR3w5cSp7ImA9WhVSF0w.&quot;"><id>tag:blogger.com,1999:blog-5048025544779233799</id><updated>2012-03-14T19:12:36.229+09:00</updated><category term="UIPrintInteractionController" /><category term="iPhoneアプリ開発" /><category term="アプリ紹介サイト" /><category term="プロトコル" /><category term="NSMutableDictionary" /><category term="ディレクトリ" /><category term="動画" /><category term="UIApplicationDelegate" /><category term="カテゴリ" /><category term="NSString" /><category term="２Dグラフィクス" /><category term="メモリ管理" /><category term="ライブラリ" /><category term="開発ドキュメント" /><category term="UIFont" /><category term="開発アプリ" /><category term="dealloc" /><category term="キャスト" /><category term="マルチビュー" /><category term="NSNumber" /><category term="UIPickerView" /><category term="NSUInteger" /><category term="UISwitch" /><category term="iAd" /><category term="UILabel" /><category term="First Responder" /><category term="関数" /><category term="プロパティリスト" /><category term="iPhoneアプリ概念" /><category term="MutableDeepCopy" /><category term="UIButton" /><category term="高速列挙" /><category term="デザインパターン" /><category term="エラー" /><category term="NSBundle" /><category term="Mac周辺機器" /><category term="文字列" /><category term="nibファイル" /><category term="NSInteger" /><category term="UITexitField" /><category term="mailto:" /><category term="XCode" /><category term="iPhoneOSレイヤー" /><category term="UITableViewDelegate" /><category term="文字列表示" /><category term="iPadアプリ開発環境" /><category term="UIImageView" /><category term="CoCoa" /><category term="UIActionSheetDelegate" /><category term="CoreFoundation" /><category term="Xcode4" /><category term="UIAleartView" /><category term="release" /><category term="UIActionSheet" /><category term="型" /><category term="Interface Builder" /><category term="UIDatePicker" /><category term="＠selector" /><category term="表" /><category term="オブジェクト分割" /><category term="ボタン" /><category term="Twitter" /><category term="Macアプリ" /><category term="UIControEvent" /><category term="Files'Owner" /><category term="NSDictionary" /><category term="＠property" /><category term="＠class" /><category term="プロパティ" /><category term="代入" /><category term="UIViewController" /><category term="Objective-C" /><category term="Apple Developer Program" /><category term="UIImage" /><category term="C言語" /><category term="UITableViewDataSorce" /><category term="if_in" /><category term="ModalView" /><category term="UIView" /><category term="NSDateFormatter" /><category term="JSON" /><category term="NSArray" /><category term="UITableViewCell" /><category term="Facebook" /><category term="サブビュー" /><category term="lazy loading" /><category term="Mac操作" /><category term="iPhoneアプリ開発環境" /><category term="init" /><category term="NSMutableArray" /><category term="UIWindow" /><category term="アニメーション" /><category term="メソッド" /><category term="NSIndexPath" /><category term="UIResponder" /><category term="UIScrollView" /><category term="サンプルコード" /><category term="UIKit" /><category term="NSObject" /><category term="回転" /><category term="alloc" /><category term="ルートコントローラ" /><category term="UISlider" /><category term="retain" /><category term="UITableView" /><category term="マーケティング" /><category term="巻き紙電卓" /><category term="画像" /><category term="iOS5" /><title>モバ造の家に突然iMacがやって来た!!</title><subtitle type="html">酔っぱらって買ってしまったiMacの行く末は...&lt;br&gt;
&lt;br&gt;
iPhone App 「巻き紙電卓」できました。よろしくね！！</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://moba-mac.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://moba-mac.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/5048025544779233799/posts/default?start-index=4&amp;max-results=3&amp;redirect=false&amp;v=2" /><author><name>Taizo Yamamoto</name><uri>https://profiles.google.com/103918462760317656393</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-kGx_m2xiBQs/AAAAAAAAAAI/AAAAAAAAAAA/qVvZflSG0Z0/s512-c/photo.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>256</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>3</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/ikxrT" /><feedburner:info uri="blogspot/ikxrt" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DEcGQns5cSp7ImA9WhVTGEk.&quot;"><id>tag:blogger.com,1999:blog-5048025544779233799.post-4157772106522521956</id><published>2012-03-04T09:41:00.000+09:00</published><updated>2012-03-04T16:27:03.529+09:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-04T16:27:03.529+09:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Twitter" /><title>TWRequest Class Reference</title><content type="html">TWRequest Class &lt;br /&gt;
&lt;br /&gt;
TWRequest(Twitter Framework)は in iOS 5.0以降で動作する。&lt;br /&gt;
&lt;br /&gt;
TWRequestオブジェクトは、Twitterの操作とユーザ認証のためのHTTPリクエストを含んでいる。&lt;br /&gt;
・URL 識別&lt;br /&gt;
・HTTP メソッド(GET, POST or DELETE)&lt;br /&gt;
・要求ごとの問い合わせパラメータのセット&lt;br /&gt;
・分割POST&lt;br /&gt;
詳細は&lt;a href="https://dev.twitter.com/docs"&gt;Twittter APIドキュメント&lt;/a&gt;を参照のこと。&lt;br /&gt;
メソッド initWithURL:parameters:requestMethod: は、新しいTWRequestオブジェクトを生成しする。&lt;br /&gt;
メソッド addMultiPartData:withName:type: は分割POTSTの本体を定義する。&lt;br /&gt;
メソッド performRequestWithHandler: ハンドラーに定義された要求を実行する。あるいは, 代わりにsignedURLRequest メソッドで NSURLConnection オブジェクトで処理する。
&lt;br /&gt;
もし、Twitterの承認が必要な場合は、アカウントを登録をACAccountオブジェクトで実施する。&lt;br /&gt;
&lt;br /&gt;
ーーーーーーーーーーーーーーーーーーーーーーーーーー&lt;br /&gt;
&lt;div style="font-size: 1px;"&gt;
&lt;br /&gt;&lt;/div&gt;
Initializing Requests&lt;br /&gt;
&lt;b&gt;– initWithURL:parameters:requestMethod:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Accessing Properties&lt;br /&gt;
&lt;b&gt;account&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;requestMethod&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;URL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;parameters&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;– addMultiPartData:withName:type:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Sending Requests&lt;br /&gt;
&lt;b&gt;– performRequestWithHandler:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;– signedURLRequest&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー&lt;br /&gt;
&lt;div style="font-size: 1px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-size: 1px;"&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
プロパティ&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー&lt;/div&gt;
&lt;div style="font-size: 1px;"&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;account&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; オーソライズが要求されるリクエストで使用するアカウント情報（オプション）&lt;br /&gt;
@property(nonatomic, retain) ACAccount *account&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 据えてのTwitterへの要求がオーソライズを必要とするわけではない。デフォルト値nil&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;parameters&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; この要求のためのパラメータ（読み取り専用）&lt;br /&gt;
&amp;nbsp;@property(nonatomic, readonly) NSDictionary *parameters&lt;br /&gt;
&amp;nbsp; &amp;nbsp; これらはHTTPリクエストのための問い合わせパラメータであり、Twitter API ドキュメントに従って記述する。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;requestMethod&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; この要求のためのメソッド&lt;br /&gt;
&amp;nbsp;@property(nonatomic, readonly) TWRequestMethod requestMethod&lt;br /&gt;
このプロパティは、 HTTPリクエストのメソッドとして定義さる。取りうる値は“TWRequestMethod.”で記述される。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;URL&lt;/b&gt;&lt;br /&gt;
この要求のためのURL&lt;br /&gt;
@property(nonatomic, readonly) NSURL *URL&lt;br /&gt;
このプロパティは、HTTPリクエストのためのURLを意味する。取りうる値はTwitter API ドキュメントに記載されている。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー&lt;/div&gt;
インスタンスメソッド&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
ーーーーーーーーーーーーーーーーーーー&lt;/div&gt;
&lt;b&gt;&amp;nbsp;addMultiPartData:withName:type:&lt;/b&gt;&lt;br /&gt;
この要求の分割ポストの本体の名前を定義する。&lt;br /&gt;
&lt;br /&gt;
- (void)addMultiPartData:(NSData *)data withName:(NSString *)name type:(NSString *)type&lt;br /&gt;
&lt;br /&gt;
パラーメタ&lt;br /&gt;
data&lt;br /&gt;
分割ポストの本体のデータ&lt;br /&gt;
name&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
分割ポストの本体の名前&lt;/div&gt;
&lt;div&gt;
type&lt;/div&gt;
&lt;div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
分割ポストの本体の型&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
ーーーーーーーーーーーーーーーーーーーーー&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;b&gt;initWithURL:parameters:requestMethod:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt; プロパティで指定された内容で新しいオブジェクトを初期化する。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;- (id)initWithURL:(NSURL *)url parameters:(NSDictionary *)parameters requestMethod:(TWRequestMethod)requestMethod&lt;br /&gt;
&lt;br /&gt;
パラメータ&lt;br /&gt;
url&lt;br /&gt;
このHTTPリクエストのためのURL&lt;br /&gt;
parameters&lt;br /&gt;
このHTTPリクエストのためのパラメータ&lt;br /&gt;
request.
requestMethod&lt;br /&gt;
HTTリクエストで使用するメソッド&lt;br /&gt;
Return Value&lt;br /&gt;
新しい初期化オブジェクト&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
ーーーーーーーーーーーーーーーーーーーーー&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;performRequestWithHandler:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
Performs the request and when done calls the specified handler.

- (void)performRequestWithHandler:(TWRequestHandler)handler
Parameters
handler
The handler to call when the request is done. The parameters to this handler are described in TWRequestHandler. This handler is not guaranteed to be called on any particular thread.
Availability
Available in iOS 5.0 and later.
Declared In
TWRequest.h
signedURLRequest
Returns an authorized request that can be sent using an NSURLConnection object.

- (NSURLRequest *)signedURLRequest
Return Value
An OAuth compatible NSURLRequest object that allows an application to act on behalf of the user while keeping the user’s password private.

Availability
Available in iOS 5.0 and later.
Declared In
TWRequest.h
Constants

TWRequestMethod
Indicates the method used in the request.

enum TWRequestMethod {
    TWRequestMethodGET,
    TWRequestMethodPOST,
    TWRequestMethodDELETE
};
typedef enum TWRequestMethod TWRequestMethod;
Constants
TWRequestMethodGET
Requests a representation of the specified resource.
Available in iOS 5.0 and later.
Declared in TWRequest.h.
TWRequestMethodPOST
Submits data to be processed.
Available in iOS 5.0 and later.
Declared in TWRequest.h.
TWRequestMethodDELETE
Deletes the specified resource.
Available in iOS 5.0 and later.
Declared in TWRequest.h.
Discussion
Use this constant to set the requestMethod property.

TWRequestHandler
The callback handler for a Twitter request.

typedef void(^TWRequestHandler)(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error);
Discussion
The parameters to this handler are:

responseData
The data returned by the Twitter request.
urlResponse
The URL response returned by the Twitter request that includes the HTTP response codes.
error
An error sending the Twitter request if it occurs.
Refer to Twitter API Documentation for possible values of these parameters.

Availability
Available in iOS 5.0 and later.
Declared In
TWRequest.h&lt;br /&gt;
&lt;br /&gt;
参考：&lt;br /&gt;
&lt;span style="background-color: white; color: #555555; font-family: 'Verdana Bold', Verdana, Osaka, 'MS UI Gothic', sans-serif; font-size: 1em; letter-spacing: 0.1em; line-height: 18px; word-spacing: -0.1em;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href="http://d.hatena.ne.jp/dkfj/20120215/1329260044"&gt;iOS5のTwitter APIを使って実装してみる&lt;/a&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href="http://extendevernote.blogspot.com/2012/02/twitterframework.html"&gt;TwitterFrameworkの利用&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048025544779233799-4157772106522521956?l=moba-mac.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4ot0owAkjR_axjyTq3ieVBfkbuw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4ot0owAkjR_axjyTq3ieVBfkbuw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4ot0owAkjR_axjyTq3ieVBfkbuw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4ot0owAkjR_axjyTq3ieVBfkbuw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/ikxrT/~4/I7WyM5P28Lo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://moba-mac.blogspot.com/feeds/4157772106522521956/comments/default" title="コメントの投稿" /><link rel="replies" type="text/html" href="http://moba-mac.blogspot.com/2012/03/twrequest-class-reference.html#comment-form" title="0 件のコメント" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5048025544779233799/posts/default/4157772106522521956?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5048025544779233799/posts/default/4157772106522521956?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/ikxrT/~3/I7WyM5P28Lo/twrequest-class-reference.html" title="TWRequest Class Reference" /><author><name>Taizo Yamamoto</name><uri>https://profiles.google.com/103918462760317656393</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-kGx_m2xiBQs/AAAAAAAAAAI/AAAAAAAAAAA/qVvZflSG0Z0/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://moba-mac.blogspot.com/2012/03/twrequest-class-reference.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04NQn0yfCp7ImA9WhRaEks.&quot;"><id>tag:blogger.com,1999:blog-5048025544779233799.post-4396782778331076936</id><published>2012-02-15T08:26:00.005+09:00</published><updated>2012-02-15T08:26:33.394+09:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-15T08:26:33.394+09:00</app:edited><title>Objective-C のキューは、NSMutableArrayで作る。</title><content type="html">&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="spaceabove" style="font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 1.083em;"&gt;
&lt;span class="Apple-style-span" style="color: #666666; font-family: Courier, Consolas, monospace;"&gt;iOS4から？キューがディスコンになったのは、多分NSMutableArrayを使えってことなんだろうなぁ。&lt;/span&gt;&lt;/div&gt;
&lt;div class="spaceabove" style="font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 1.083em;"&gt;
&lt;code style="color: #666666; font-family: Courier, Consolas, monospace; font-size: 13px;"&gt;NSMutableArray&lt;/code&gt;‘s methods are conceptually based on these primitive methods:&lt;/div&gt;
&lt;ul class="simple" style="font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; list-style-image: initial; list-style-position: outside; list-style-type: none; margin-bottom: 0px; margin-left: 2.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;
&lt;li style="margin-top: 1px;"&gt;&lt;div style="display: inline; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;"&gt;
&lt;code style="color: #666666; font-family: Courier, Consolas, monospace; font-size: 13px;"&gt;&lt;a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference/Reference.html#//apple_ref/occ/instm/NSMutableArray/insertObject:atIndex:" style="color: #3366cc; text-decoration: none;"&gt;insertObject:atIndex:&lt;/a&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="margin-top: 1px;"&gt;&lt;div style="display: inline; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;"&gt;
&lt;code style="color: #666666; font-family: Courier, Consolas, monospace; font-size: 13px;"&gt;&lt;a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference/Reference.html#//apple_ref/occ/instm/NSMutableArray/removeObjectAtIndex:" style="color: #3366cc; text-decoration: none;"&gt;removeObjectAtIndex:&lt;/a&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="margin-top: 1px;"&gt;&lt;div style="display: inline; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;"&gt;
&lt;code style="color: #666666; font-family: Courier, Consolas, monospace; font-size: 13px;"&gt;&lt;a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference/Reference.html#//apple_ref/occ/instm/NSMutableArray/addObject:" style="color: #3366cc; text-decoration: none;"&gt;addObject:&lt;/a&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="margin-top: 1px;"&gt;&lt;div style="display: inline; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;"&gt;
&lt;code style="color: #666666; font-family: Courier, Consolas, monospace; font-size: 13px;"&gt;&lt;a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference/Reference.html#//apple_ref/occ/instm/NSMutableArray/removeLastObject" style="color: #3366cc; text-decoration: none;"&gt;removeLastObject&lt;/a&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="margin-top: 1px;"&gt;&lt;div style="display: inline; font: normal normal normal 100%/normal 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;"&gt;
&lt;code style="color: #666666; font-family: Courier, Consolas, monospace; font-size: 13px;"&gt;&lt;a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference/Reference.html#//apple_ref/occ/instm/NSMutableArray/replaceObjectAtIndex:withObject:" style="color: #3366cc; text-decoration: none;"&gt;replaceObjectAtIndex:withObject:&lt;/a&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048025544779233799-4396782778331076936?l=moba-mac.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ezyZLCKV1HhSIuGmYtRWeFiLHqo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ezyZLCKV1HhSIuGmYtRWeFiLHqo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ezyZLCKV1HhSIuGmYtRWeFiLHqo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ezyZLCKV1HhSIuGmYtRWeFiLHqo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/ikxrT/~4/cEKfyBqP5co" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://moba-mac.blogspot.com/feeds/4396782778331076936/comments/default" title="コメントの投稿" /><link rel="replies" type="text/html" href="http://moba-mac.blogspot.com/2012/02/objective-c-nsmutablearray.html#comment-form" title="0 件のコメント" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5048025544779233799/posts/default/4396782778331076936?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5048025544779233799/posts/default/4396782778331076936?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/ikxrT/~3/cEKfyBqP5co/objective-c-nsmutablearray.html" title="Objective-C のキューは、NSMutableArrayで作る。" /><author><name>Taizo Yamamoto</name><uri>https://profiles.google.com/103918462760317656393</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-kGx_m2xiBQs/AAAAAAAAAAI/AAAAAAAAAAA/qVvZflSG0Z0/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://moba-mac.blogspot.com/2012/02/objective-c-nsmutablearray.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04BRX4ycCp7ImA9WhdUEEg.&quot;"><id>tag:blogger.com,1999:blog-5048025544779233799.post-7999199526886335240</id><published>2011-09-27T00:45:00.005+09:00</published><updated>2011-09-27T00:45:54.098+09:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-27T00:45:54.098+09:00</app:edited><title>UIImageの生成の仕方</title><content type="html">UIImageの生成にあたり、簡単なので[UIImage imageNamed:@"image.png"]といった具合に生成することもあるかと思いますが、この場合マルチタスクで一旦プログラムが終了すると、情報が廃棄されてしまいます。&lt;br /&gt;
&lt;br /&gt;
そのため、やはり面倒でも以下のような生成をしないとだめなようです。&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #34237c; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;
&lt;span style="color: black;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #663fa4;"&gt;NSString&lt;/span&gt;&lt;span style="color: black;"&gt; *path= [[&lt;/span&gt;&lt;span style="color: #663fa4;"&gt;NSBundle&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;mainBundle&lt;span style="color: black;"&gt;] &lt;/span&gt;pathForResource&lt;span style="color: black;"&gt;:&lt;/span&gt;&lt;span style="color: #ce2f26;"&gt;@"image"&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;ofType&lt;span style="color: black;"&gt;:&lt;/span&gt;&lt;span style="color: #ce2f26;"&gt;@"png"&lt;/span&gt;&lt;span style="color: black;"&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style="color: #34237c; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;
&lt;span style="color: black;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #467e83;"&gt;UIImage *image&lt;/span&gt;&lt;span style="color: black;"&gt; = [[&lt;/span&gt;&lt;span style="color: #663fa4;"&gt;UIImage&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;alloc&lt;span style="color: black;"&gt;] &lt;/span&gt;initWithContentsOfFile&lt;span style="color: black;"&gt;:path];&lt;/span&gt;&lt;/div&gt;
&lt;div style="color: #34237c; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;
&lt;span style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048025544779233799-7999199526886335240?l=moba-mac.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/b0m10pIq5IhYssBFUDg4V6PU630/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/b0m10pIq5IhYssBFUDg4V6PU630/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/b0m10pIq5IhYssBFUDg4V6PU630/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/b0m10pIq5IhYssBFUDg4V6PU630/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/ikxrT/~4/FJNZ-gw6MQU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://moba-mac.blogspot.com/feeds/7999199526886335240/comments/default" title="コメントの投稿" /><link rel="replies" type="text/html" href="http://moba-mac.blogspot.com/2011/09/uiimage.html#comment-form" title="0 件のコメント" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5048025544779233799/posts/default/7999199526886335240?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5048025544779233799/posts/default/7999199526886335240?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/ikxrT/~3/FJNZ-gw6MQU/uiimage.html" title="UIImageの生成の仕方" /><author><name>Taizo Yamamoto</name><uri>https://profiles.google.com/103918462760317656393</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-kGx_m2xiBQs/AAAAAAAAAAI/AAAAAAAAAAA/qVvZflSG0Z0/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://moba-mac.blogspot.com/2011/09/uiimage.html</feedburner:origLink></entry></feed>

