<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7908393109539339913</id><updated>2024-08-31T15:32:59.865+09:00</updated><category term="perl"/><category term="0歳"/><category term="2歳"/><category term="PHP"/><category term="WordPress"/><category term="bookmark、javascript"/><category term="お風呂"/><category term="エラー"/><category term="ベビーバス"/><category term="ワードプレス"/><category term="新生児"/><category term="日常"/><category term="育児"/><category term="２歳差"/><title type='text'>さくらのあたま</title><subtitle type='html'>考えたことや日記、メモなど</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>143</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-6364187296192379299</id><published>2019-03-11T13:53:00.000+09:00</published><updated>2019-03-11T13:53:23.759+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="0歳"/><category scheme="http://www.blogger.com/atom/ns#" term="2歳"/><category scheme="http://www.blogger.com/atom/ns#" term="お風呂"/><category scheme="http://www.blogger.com/atom/ns#" term="ベビーバス"/><category scheme="http://www.blogger.com/atom/ns#" term="新生児"/><category scheme="http://www.blogger.com/atom/ns#" term="育児"/><category scheme="http://www.blogger.com/atom/ns#" term="２歳差"/><title type='text'>【お風呂編】２歳差育児で役立ったもの・二人のお風呂の入れ方（長男2歳3カ月・長女0カ月）</title><content type='html'>里帰り出産で、両親・姉のいる実家で１か月すこしお世話になりましたが、&lt;br /&gt;
赤ちゃんが生まれたことで敏感になってる長男は、&lt;br /&gt;
じぃじ・ばぁばとはお風呂に入らず！！&lt;br /&gt;
&lt;br /&gt;
出産後、退院した日から私が子供二人のお風呂を入れていました。&lt;br /&gt;
今回は退院直後～約１か月のうちのお風呂事情について書いてみます！&lt;br /&gt;
&lt;br /&gt;
●２歳差育児・お風呂で役立ったもの&lt;br /&gt;
&lt;br /&gt;
・空気で膨らますベビーバス&lt;br /&gt;
・プッシュで泡が出るタイプのボディーソープ&lt;br /&gt;
（泡切れのいいもの）&lt;br /&gt;
私はビオレの新生児から使える製品を使ってました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
●赤ちゃんのお風呂（0カ月・新生児）&lt;br /&gt;
&lt;br /&gt;
長女のお風呂は、いつも15時くらい～16時くらいでベビーバスをシンクに出して入浴させていました。&lt;br /&gt;
シンクなら、かがまなくてもお風呂に入れられるし、リビングなら暖房も効いていて寒くないので。&lt;br /&gt;
&lt;br /&gt;
赤ちゃんの着替え・オムツ・バスタオルを広げてリビングに待機させておき、&lt;br /&gt;
シンクに空気で膨らますタイプのベビーバスにお湯をため、赤ちゃんを入浴させてました。&lt;br /&gt;
&lt;br /&gt;
石鹸は泡立てるのが大変＆面倒なので、プッシュタイプの泡で出るタイプのもの！&lt;br /&gt;
&lt;br /&gt;
長男は、横で赤ちゃんの入浴の様子を見ていたり、リビングでおやつ食べながらテレビ見てたりしてました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
●長男のお風呂（2歳３か月）&lt;br /&gt;
出産後、私は１か月検診が終わるまでは浴槽に入れないので、長男も産後２週間くらいはシャワーのみでお風呂を済ませてました。&lt;br /&gt;
&lt;br /&gt;
長女は10月上旬生まれだったので、最初の２週間くらいはまだシャワーでも大丈夫でしたが、&lt;br /&gt;
どんどん気温が下がって寒くなってきたので、&lt;br /&gt;
だんだんシャワーだけでは寒くて、浴槽にお湯をためて、長男を浴槽で温めることもするようにしてました。&lt;br /&gt;
私は脚だけ浴槽のお湯に入ったりしてました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
手順としては、&lt;br /&gt;
１、赤ちゃんにミルクor授乳をしてお腹を満腹にさせる。&lt;br /&gt;
２、ゆらゆらして赤ちゃんをベビーベッドに寝かせる。&lt;br /&gt;
３、長男の服を脱がせ、一緒に浴室へ。&lt;br /&gt;
４、長男の体・頭を洗い、シャワーで流す。&lt;br /&gt;
５、長男の体・頭を拭いて、リビングへ。&lt;br /&gt;
６、リビングで服を着せる。&lt;br /&gt;
&lt;br /&gt;
こんな感じです。&lt;br /&gt;
なんだかバタバタしてお風呂なんか入った気にならないですが仕方なしです・・。&lt;br /&gt;
また、長男を浴槽に入れるお風呂事情についても記事にしてみたいと思います！&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/6364187296192379299/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2019/03/230.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/6364187296192379299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/6364187296192379299'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2019/03/230.html' title='【お風呂編】２歳差育児で役立ったもの・二人のお風呂の入れ方（長男2歳3カ月・長女0カ月）'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-9084327172268482647</id><published>2013-02-01T22:25:00.001+09:00</published><updated>2014-04-08T16:06:57.114+09:00</updated><title type='text'>最新のXcodeからアプリをitunes Connectにアップロードする方法</title><content type='html'>Xcodeのバージョンを新しくしたら、&lt;br /&gt;
itunes Connectにアプリをアップロードする方法がかわっていて、&lt;br /&gt;
わからなかったのでメモ。&lt;br /&gt;
&lt;br /&gt;
ここのブログがすごくわかりやすかったです。&lt;br /&gt;
&lt;a href=&quot;http://www.aguuu.com/archives/2011/04/xcode-4-itunes-connect/&quot;&gt;http://www.aguuu.com/archives/2011/04/xcode-4-itunes-connect/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
これで無事にアプリをアップロードできました！

&lt;br /&gt;&lt;br /&gt;
&lt;a href=&quot;http://px.moba8.net/svt/ejp?a8mat=2BLFVH+AQZRZM+K0A+C28PT&amp;guid=on&quot;&gt;
&lt;img border=&quot;0&quot; width=&quot;300&quot; height=&quot;250&quot; alt=&quot;&quot; src=&quot;http://www20.moba8.net/svt/bgt?aid=140408477650&amp;wid=001&amp;eno=01&amp;mid=m00000002593002026000&amp;mc=1&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://www15.moba8.net/0.jpg?a8mat=2BLFVH+AQZRZM+K0A+C28PT&amp;guid=on&quot; alt=&quot;&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/9084327172268482647/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2013/02/xcodeitunes-connect.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/9084327172268482647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/9084327172268482647'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2013/02/xcodeitunes-connect.html' title='最新のXcodeからアプリをitunes Connectにアップロードする方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-8876488975512791598</id><published>2013-02-01T22:22:00.004+09:00</published><updated>2014-06-30T18:04:15.929+09:00</updated><title type='text'>target integrity : provisioning profile is expiringエラー</title><content type='html'>target integrity : provisioning profile is expiringエラーが出たときは、&lt;br /&gt;
Xcodeのメニューから、Organizerを開きます。&lt;br /&gt;
&lt;br /&gt;
Organizerの左側のメニューにある、Provisioning Profilesを開くと、&lt;br /&gt;
エラーが出ているプロファイルがあるので、それを選択して、&lt;br /&gt;
Renew Profileボタンをクリックします。&lt;br /&gt;
&lt;br /&gt;
そうするとエラーが消えます！
&lt;br /&gt;&lt;br /&gt;

&lt;a href=&quot;http://px.moba8.net/svt/ejp?a8mat=2BLFVH+AS6N76+YKQ+ZS5GH&amp;guid=on&quot;&gt;
&lt;img border=&quot;0&quot; width=&quot;300&quot; height=&quot;60&quot; alt=&quot;&quot; src=&quot;http://www26.moba8.net/svt/bgt?aid=140408477652&amp;wid=001&amp;eno=01&amp;mid=m00000004481006010000&amp;mc=1&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://www13.moba8.net/0.jpg?a8mat=2BLFVH+AS6N76+YKQ+ZS5GH&amp;guid=on&quot; alt=&quot;&quot;&gt;

&lt;br /&gt;&lt;br /&gt;
&lt;a href=&quot;http://px.moba8.net/svt/ejp?a8mat=2BLFVH+A65LTE+MJY+CWF6FL&amp;guid=on&quot;&gt;
&lt;img border=&quot;0&quot; width=&quot;320&quot; height=&quot;100&quot; alt=&quot;&quot; src=&quot;http://www27.moba8.net/svt/bgt?aid=140408477615&amp;wid=001&amp;eno=01&amp;mid=m00000002923078005000&amp;mc=1&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://www16.moba8.net/0.jpg?a8mat=2BLFVH+A65LTE+MJY+CWF6FL&amp;guid=on&quot; alt=&quot;&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/8876488975512791598/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2013/02/target-integrity-provisioning-profile.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/8876488975512791598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/8876488975512791598'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2013/02/target-integrity-provisioning-profile.html' title='target integrity : provisioning profile is expiringエラー'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-6442934195584361148</id><published>2012-12-28T23:17:00.000+09:00</published><updated>2014-04-08T16:11:30.546+09:00</updated><title type='text'>CSSMERR_TP_NOT_TRUSTEDエラー　アプリ起動時のエラー対処法</title><content type='html'>今までmacbook airで開発をしていましたが、&lt;div&gt;
容量が少なく、いろんなファイルを管理できなくなってmac miniを買いました。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
２台のパソコンで今は開発を行っているのですが、&lt;/div&gt;
&lt;div&gt;
環境を整えるのに苦労をしたので、メモ。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
いろいろ証明書を設定して、ビルドしてみたら、&lt;/div&gt;
&lt;div&gt;
下記のエラーが。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
--------------------&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;







&lt;div class=&quot;p1&quot;&gt;
CodeSign&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
/Users/○○/Library/Developer/Xcode/DerivedData/ZoomingPDFViewer-gkmanalzplbfaxdamefzfpbcbavt/Build/Products/Debug-iphoneos/ZoomingPDFViewer.app&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; cd&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
/Users/○○/Desktop/ZoomingPDFViewer&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; setenv CODESIGN_ALLOCATE /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; setenv PATH &quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin&quot;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; /usr/bin/codesign --force --sign 6fca944bd049fc792f6469e792a45346d1031805 --resource-rules=&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
/Users/○○/Library/Developer/Xcode/DerivedData/ZoomingPDFViewer-gkmanalzplbfaxdamefzfpbcbavt/Build/Products/Debug-iphoneos/ZoomingPDFViewer.app&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
/ResourceRules.plist --entitlements&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
/Users/○○/Library/Developer/Xcode/DerivedData/ZoomingPDFViewer-gkmanalzplbfaxdamefzfpbcbavt/Build/Intermediates/ZoomingPDFViewer.build/Debug-iphoneos/ZoomingPDFViewer.build/ZoomingPDFViewer.xcent /Users/○○/Library/Developer/Xcode/DerivedData/ZoomingPDFViewer-gkmanalzplbfaxdamefzfpbcbavt/Build/Products/Debug-iphoneos/ZoomingPDFViewer.app&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
/Users/○○/Library/Developer/Xcode/DerivedData/ZoomingPDFViewer-gkmanalzplbfaxdamefzfpbcbavt/Build/Products/Debug-iphoneos/ZoomingPDFViewer.app: replacing existing signature/Users/○○/Library/Developer/Xcode/DerivedData/ZoomingPDFViewer-gkmanalzplbfaxdamefzfpbcbavt/Build/Products/Debug-iphoneos/ZoomingPDFViewer.app: CSSMERR_TP_NOT_TRUSTEDCommand /usr/bin/codesign failed with exit code 1&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
----------&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
いろいろググった結果、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
キーチェーンアクセスに登録した証明書に問題があることがわかりました。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
キーチェーンアクセスの鍵のカテゴリで、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
証明書をチェックした際に、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
緑のマークと一緒に「この証明書は有効です」となっていないと&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
上記のエラーが出てしまうことがわかりました。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
証明書を右クリックして、「情報をみる」から、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
「信頼」を確認してみると、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
「この証明書を使用するとき」というのが選択できます。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ここを常に信頼を選択してしまっていたのがいけませんでした。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
「システムデフォルトを使用」を選択することで、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
エラーにならずにビルドをすることができました！&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
下記ブログ参考にさせていただきました。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ありがとうございます！&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
http://akisute.com/2010/12/cssmerrtpnottrusted.html&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;br /&gt;&lt;br /&gt;


&lt;a href=&quot;http://px.moba8.net/svt/ejp?a8mat=2BLFVH+AS6N76+YKQ+ZS5GH&amp;guid=on&quot;&gt;
&lt;img border=&quot;0&quot; width=&quot;300&quot; height=&quot;60&quot; alt=&quot;&quot; src=&quot;http://www26.moba8.net/svt/bgt?aid=140408477652&amp;wid=001&amp;eno=01&amp;mid=m00000004481006010000&amp;mc=1&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://www13.moba8.net/0.jpg?a8mat=2BLFVH+AS6N76+YKQ+ZS5GH&amp;guid=on&quot; alt=&quot;&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/6442934195584361148/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/12/cssmerrtpnottrusted.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/6442934195584361148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/6442934195584361148'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/12/cssmerrtpnottrusted.html' title='CSSMERR_TP_NOT_TRUSTEDエラー　アプリ起動時のエラー対処法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-2632650094950701911</id><published>2012-10-12T22:04:00.006+09:00</published><updated>2014-04-08T16:12:14.263+09:00</updated><title type='text'>初心者からでもアプリが作れる！iphoneアプリの 習得にオススメの 本５冊</title><content type='html'>２０１２年の１月から独学でiphoneアプリの勉強をしてきました。&lt;br /&gt;
まだまだひよっこですが、&lt;br /&gt;
本当の未経験から、アプリが作れる様になるまでに、&lt;br /&gt;
私が参考にした本をぜひご紹介したいと思います。&lt;br /&gt;
&lt;br /&gt;
【１】カワサキタカシさんのiphoneアプリ開発塾&lt;br /&gt;
&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&amp;amp;bc1=000000&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=mistotsuboi-22&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;ref=qf_sp_asin_til&amp;amp;asins=477415105X&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
サルできブログでも有名なカワサキさんの本。&lt;br /&gt;
初心者でも分かりやすく説明がされていてオススメです。&lt;br /&gt;
&lt;br /&gt;
本だけでなく、ブログも面白いので、&lt;br /&gt;
ぜひチェックしてみて下さい。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
【２】iphone UIKIT&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm-jp.amazon.co.jp/e/cm?t=mistotsuboi-22&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=4897978440&amp;amp;ref=qf_sp_asin_til&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;br /&gt;
iphone開発に重要なUIKITを分かりやすく丁寧に説明してくれています。&lt;br /&gt;
ある程度UIKITの事を学んだらぜひ読んでほしい一冊です。&lt;br /&gt;
&lt;br /&gt;
今でもUIKITの確認をするときなど、&lt;br /&gt;
辞書がわりとして読み直したりしています。&lt;br /&gt;
&lt;br /&gt;
長く使える本になりそうです。&lt;br /&gt;
&lt;br /&gt;
【３】iphone SDK&lt;br /&gt;
&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm-jp.amazon.co.jp/e/cm?t=mistotsuboi-22&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=4873114179&amp;amp;ref=qf_sp_asin_til&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
定番のオライリー！&lt;br /&gt;
オライリーだけあって、初心者にはとっつきづらいテキストが&lt;br /&gt;
ずらりと並んだ本になりますが、&lt;br /&gt;
iphoneアプリの知識を深めるにはとってもいい本です！&lt;br /&gt;
&lt;br /&gt;
たくさんの情報がまとめられていて、&lt;br /&gt;
知っている知識をより深められることが出来ます。&lt;br /&gt;
&lt;br /&gt;
【４】iphoneアプリ開発&lt;br /&gt;
&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm-jp.amazon.co.jp/e/cm?t=mistotsuboi-22&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=486354085X&amp;amp;ref=tf_til&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
初心者にはちょっと難しめに書いてありますが、&lt;br /&gt;
カメラアプリやクイズアプリなど、作ってみたくなるアプリの解説が&lt;br /&gt;
たくさん載っています。&lt;br /&gt;
&lt;br /&gt;
私もこの本でいろんなアプリを見よう見まねで作りながら、&lt;br /&gt;
アプリの勉強をしてきたので、&lt;br /&gt;
かなり思い出になった一冊です。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
【５】iphoneアプリ開発&lt;br /&gt;
&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm-jp.amazon.co.jp/e/cm?t=mistotsuboi-22&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=4798122998&amp;amp;ref=tf_til&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
１０日間で覚えるシリーズです。&lt;br /&gt;
毎日コツコツと読み進めていけるので、&lt;br /&gt;
短期間にiphoneアプリの開発について勉強したいという方にオススメ！&lt;br /&gt;
&lt;br /&gt;
ソースもきちんと書いてくれているので、&lt;br /&gt;
とても分かりやすく、読みやすいです。&lt;br /&gt;
&lt;br /&gt;
以上がオススメの５冊です。&lt;br /&gt;
他にもいろいろな本を読んできましたが、&lt;br /&gt;
他のオススメ本もまた機会があるときにご紹介したいと思います！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://px.moba8.net/svt/ejp?a8mat=2BLFVH+AQZRZM+K0A+C2GFL&amp;guid=on&quot;&gt;
&lt;img border=&quot;0&quot; width=&quot;320&quot; height=&quot;50&quot; alt=&quot;&quot; src=&quot;http://www20.moba8.net/svt/bgt?aid=140408477650&amp;wid=001&amp;eno=01&amp;mid=m00000002593002027000&amp;mc=1&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://www11.moba8.net/0.jpg?a8mat=2BLFVH+AQZRZM+K0A+C2GFL&amp;guid=on&quot; alt=&quot;&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/2632650094950701911/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/10/iphone.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/2632650094950701911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/2632650094950701911'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/10/iphone.html' title='初心者からでもアプリが作れる！iphoneアプリの 習得にオススメの 本５冊'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-2207139783392136726</id><published>2012-10-12T21:49:00.002+09:00</published><updated>2014-06-30T18:04:02.655+09:00</updated><title type='text'>the value for the ingo .plist key CFBundleLocaliztion is not of the required type of that key see the information property ist key reference 1091　エラー</title><content type='html'>the value for the ingo .plist key CFBundleLocaliztion is not of the required type of that key see the information property ist key reference 1091というエラーが出て、&lt;br /&gt;
アップロードが出来ずに悩んでました。&lt;br /&gt;
&lt;br /&gt;
いろいろ調べた結果、&lt;br /&gt;
info.plistに入っているLocalizationの部分を削除したら大丈夫でした！&lt;br /&gt;
&lt;br /&gt;
みなさんも一度ハマったらinfo.plistをご確認ください。

&lt;br /&gt;&lt;br /&gt;
&lt;a href=&quot;http://px.moba8.net/svt/ejp?a8mat=2BLFVH+A65LTE+MJY+CWF6FL&amp;guid=on&quot;&gt;
&lt;img border=&quot;0&quot; width=&quot;320&quot; height=&quot;100&quot; alt=&quot;&quot; src=&quot;http://www27.moba8.net/svt/bgt?aid=140408477615&amp;wid=001&amp;eno=01&amp;mid=m00000002923078005000&amp;mc=1&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://www16.moba8.net/0.jpg?a8mat=2BLFVH+A65LTE+MJY+CWF6FL&amp;guid=on&quot; alt=&quot;&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/2207139783392136726/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/10/the-value-for-ingo-plist-key.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/2207139783392136726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/2207139783392136726'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/10/the-value-for-ingo-plist-key.html' title='the value for the ingo .plist key CFBundleLocaliztion is not of the required type of that key see the information property ist key reference 1091　エラー'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-5201304749765014927</id><published>2012-10-02T19:47:00.003+09:00</published><updated>2014-04-08T16:12:33.095+09:00</updated><title type='text'>Command /usr/bin/codesign failed with exit code 1エラー（証明書やキーチェーンが原因でないときの対処法）</title><content type='html'>Command /usr/bin/codesign failed with exit code 1っていうエラーが出て、&lt;br /&gt;
ハマりました。。&lt;br /&gt;
&lt;br /&gt;
このキーワードで検索すると、&lt;br /&gt;
キーチェーンにムダな証明書があるからそれをキレイにすると&lt;br /&gt;
治るよって言う情報がたくさんでてくるんだけど、&lt;br /&gt;
私のは、他のプロジェクトだとうまくビルドできてるから、&lt;br /&gt;
証明書が原因じゃないはず…と思っていろいろ調べていました。&lt;br /&gt;
&lt;br /&gt;
結局は、しっかりエラーを読んでみると、&lt;br /&gt;
&lt;br /&gt;
&lt;h1 style=&quot;background-color: white; font-family: &#39;ＭＳ Ｐゴシック&#39;, &#39;ヒラギノ角ゴ Pro W3&#39;, Arial, Helvetica; font-size: 1em; font-weight: normal; line-height: 13.333333015441895px; margin: 0px; padding: 0px;&quot;&gt;
&lt;a class=&quot;skinArticleTitle&quot; href=&quot;http://ameblo.jp/aulait273/entry-10833285876.html&quot; rel=&quot;bookmark&quot; style=&quot;color: black; font-size: 1.31em; text-decoration: none;&quot;&gt;object file format invalid or unsuitable&lt;/a&gt;&lt;/h1&gt;
&lt;div&gt;
って出ていました。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
よく調べてみたら、&lt;/div&gt;
&lt;div&gt;
info.plistの変えちゃいけない情報を変えていました！！&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Executable fileは書き換えちゃいけません。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
Bundle identifierやBundle nameの方を修正しましょう。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;
&lt;a href=&quot;http://px.moba8.net/svt/ejp?a8mat=2BLFVH+AQZRZM+K0A+C2GFL&amp;guid=on&quot;&gt;
&lt;img border=&quot;0&quot; width=&quot;320&quot; height=&quot;50&quot; alt=&quot;&quot; src=&quot;http://www20.moba8.net/svt/bgt?aid=140408477650&amp;wid=001&amp;eno=01&amp;mid=m00000002593002027000&amp;mc=1&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://www11.moba8.net/0.jpg?a8mat=2BLFVH+AQZRZM+K0A+C2GFL&amp;guid=on&quot; alt=&quot;&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/5201304749765014927/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/10/command-usrbincodesign-failed-with-exit.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/5201304749765014927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/5201304749765014927'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/10/command-usrbincodesign-failed-with-exit.html' title='Command /usr/bin/codesign failed with exit code 1エラー（証明書やキーチェーンが原因でないときの対処法）'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-3438620667065012186</id><published>2012-10-01T14:44:00.001+09:00</published><updated>2014-09-17T17:07:17.584+09:00</updated><title type='text'>iphoneとandroid で表示を統一する方法</title><content type='html'>&lt;br /&gt;
iphoneの横幅は３２０ｐｘ&lt;br /&gt;
アンドロイドは機種によっても様々。&lt;br /&gt;
&lt;br /&gt;
そんなスマートフォンのサイトを制作するときに、&lt;br /&gt;
どんな機種でもきちんと表示されるように、&lt;br /&gt;
「viewport」っていうのを設定します。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta content=&#39;width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0&#39; name=&#39;viewport&#39;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
このように設定すると、&lt;br /&gt;
アンドロイドでもiphoneでも横幅にあわせて表示をしてくれ、&lt;br /&gt;
ユーザーが拡大したり縮小したりすることを防げます。&lt;br /&gt;
&lt;br /&gt;
一緒に&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta content=&#39;telephone=no&#39; name=&#39;format-detection&#39;&amp;gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
こちらも書くと、&lt;/div&gt;
&lt;div&gt;
日付のところや電話番号のところが勝手に電話のリンクにならなくて&lt;/div&gt;
&lt;div&gt;
便利。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ぜひお試しください。&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;&lt;!-- Rakuten Widget FROM HERE --&gt;&lt;script type=&quot;text/javascript&quot;&gt;rakuten_design=&quot;slide&quot;;rakuten_affiliateId=&quot;0f163ead.f7973440.0f163eae.f5499fe3&quot;;rakuten_items=&quot;ctsmatch&quot;;rakuten_genreId=0;rakuten_size=&quot;468x160&quot;;rakuten_target=&quot;_blank&quot;;rakuten_theme=&quot;gray&quot;;rakuten_border=&quot;off&quot;;rakuten_auto_mode=&quot;off&quot;;rakuten_genre_title=&quot;off&quot;;rakuten_recommend=&quot;on&quot;;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://xml.affiliate.rakuten.co.jp/widget/js/rakuten_widget.js&quot;&gt;&lt;/script&gt;&lt;!-- Rakuten Widget TO HERE --&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/3438620667065012186/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/10/iphoneandroid.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3438620667065012186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3438620667065012186'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/10/iphoneandroid.html' title='iphoneとandroid で表示を統一する方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-3617161750480533466</id><published>2012-08-20T19:36:00.001+09:00</published><updated>2014-09-17T17:07:45.462+09:00</updated><title type='text'>View-based Applicationが見つからない 新しいX-code</title><content type='html'>いつもView based applicationを選択してアプリを作成していたのに、&lt;br /&gt;
新しくX-codeをダウンロードしてアプリを作ろうとしたら、&lt;br /&gt;
View based applicationが見つからない。。&lt;br /&gt;
&lt;br /&gt;
どうやら、新しいものは、「&lt;span class=&quot;highlight&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Times New Roman&#39;, serif; line-height: 19px; margin: 0px; padding: 0px; text-align: left;&quot;&gt;Single&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Times New Roman&#39;, serif; line-height: 19px; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;highlight&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Times New Roman&#39;, serif; line-height: 19px; margin: 0px; padding: 0px; text-align: left;&quot;&gt;View&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Times New Roman&#39;, serif; line-height: 19px; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;highlight&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Times New Roman&#39;, serif; line-height: 19px; margin: 0px; padding: 0px; text-align: left;&quot;&gt;Application&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Times New Roman&#39;, serif; line-height: 19px; text-align: left;&quot;&gt;」を選択し、「Next」ボタンを押し、「Use storyboard」のチェックを外し「Next」ボタンを押し保存するれば同じ構成になっているようです。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Times New Roman&#39;, serif; line-height: 19px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Times New Roman&#39;, serif; line-height: 19px; text-align: left;&quot;&gt;いろいろ新しく変わっているんですね。&lt;/span&gt;

&lt;br /&gt;&lt;br /&gt;
&lt;!-- Rakuten Widget FROM HERE --&gt;&lt;script type=&quot;text/javascript&quot;&gt;rakuten_design=&quot;slide&quot;;rakuten_affiliateId=&quot;0f163ead.f7973440.0f163eae.f5499fe3&quot;;rakuten_items=&quot;ctsmatch&quot;;rakuten_genreId=0;rakuten_size=&quot;468x160&quot;;rakuten_target=&quot;_blank&quot;;rakuten_theme=&quot;gray&quot;;rakuten_border=&quot;off&quot;;rakuten_auto_mode=&quot;off&quot;;rakuten_genre_title=&quot;off&quot;;rakuten_recommend=&quot;on&quot;;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://xml.affiliate.rakuten.co.jp/widget/js/rakuten_widget.js&quot;&gt;&lt;/script&gt;&lt;!-- Rakuten Widget TO HERE --&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/3617161750480533466/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/08/view-based-application-x-code.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3617161750480533466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3617161750480533466'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/08/view-based-application-x-code.html' title='View-based Applicationが見つからない 新しいX-code'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-8895548638252824571</id><published>2012-07-13T19:46:00.001+09:00</published><updated>2014-04-08T16:14:59.388+09:00</updated><title type='text'>NSBundleを使ったファイルパスの指定方法と、URLからデータを取得する方法</title><content type='html'>Xcodeで何かしら画像やファイルデータを呼びたいときに、&lt;br /&gt;
ファイルパスを指定してデータを呼び出すのですが、&lt;br /&gt;
そのデータを呼び出す際の方法を今日はご紹介したいと思います。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
まず最初は、NSBundleを利用してファイルパスを書く方法。&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;NSString *filePath = [[NSBundle mainBundle] pathForResource:@&quot;test&quot; ofType:@&quot;gif&quot;];&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;NSData *data = [NSData dataWithContentsOfFile: filePath];&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;-------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;これで、dataの中には、test.gif画像が保存されます。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;「pathForResource」は、ファイルの名前で、&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;「&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;ofType&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;」の方は、ファイルの拡張子を指定します。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;gif以外にも、jpegや音楽ファイル、plist（プロパティリスト）など、&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;いろんなファイルを呼び出す事が出来ます。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;次は、URLを指定して、ファイルを呼び出す方法です。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
こんな感じで、&lt;span class=&quot;s1&quot; style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;background-color: white;&quot;&gt;initWithStringの所に呼び出したいファイルのURLを指定しましょう。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;---------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;* url = [[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;initWithString&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;@&quot;http://~~~~~.html&quot;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSURLRequest&lt;span class=&quot;s4&quot;&gt;* req = [&lt;/span&gt;NSURLRequest&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;requestWithURL&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;:url];&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSURLResponse&lt;span class=&quot;s4&quot;&gt;* res;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s6&quot;&gt;NSError&lt;/span&gt;* a_error;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSData&lt;span class=&quot;s4&quot;&gt;* data = [&lt;/span&gt;NSURLConnection&lt;span class=&quot;s4&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&amp;nbsp; &lt;/span&gt;sendSynchronousRequest&lt;span class=&quot;s4&quot;&gt;:req&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&amp;nbsp; &lt;/span&gt;returningResponse&lt;span class=&quot;s4&quot;&gt;:&amp;amp;res&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&amp;nbsp; &lt;span class=&quot;s5&quot;&gt;error&lt;/span&gt;:&amp;amp;a_error];&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
--------&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://px.moba8.net/svt/ejp?a8mat=2BLFVH+AUKDMA+DW+6FHC1&amp;guid=on&quot;&gt;
&lt;img border=&quot;0&quot; width=&quot;320&quot; height=&quot;100&quot; alt=&quot;&quot; src=&quot;http://www23.moba8.net/svt/bgt?aid=140408477656&amp;wid=001&amp;eno=01&amp;mid=m00000000050001080000&amp;mc=1&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://www19.moba8.net/0.jpg?a8mat=2BLFVH+AUKDMA+DW+6FHC1&amp;guid=on&quot; alt=&quot;&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/8895548638252824571/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/nsbundleurl.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/8895548638252824571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/8895548638252824571'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/nsbundleurl.html' title='NSBundleを使ったファイルパスの指定方法と、URLからデータを取得する方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-3524506497056650642</id><published>2012-07-12T19:52:00.003+09:00</published><updated>2014-04-08T16:15:39.219+09:00</updated><title type='text'>_Prefix.pchファイルとは　objective-cの勉強</title><content type='html'>xcodeで何かプロジェクトを作成すると、&lt;br /&gt;
Other Sourceの中に入っている_Prefix.pchファイル。&lt;br /&gt;
&lt;br /&gt;
このファイルに、&lt;span style=&quot;background-color: white;&quot;&gt;いろいろ指定していると、&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;わざわざヘッダーファイルで呼び出さなくても&lt;/span&gt;&lt;br /&gt;
使えるので便利です。&lt;br /&gt;
&lt;br /&gt;
例えば、&lt;br /&gt;
#define Image @&quot;image&quot;&lt;br /&gt;
#define serchpath @&quot;http://www〜&quot;&lt;br /&gt;
&lt;br /&gt;
みたいによく使う名前やURLを登録しておくと便利！&lt;br /&gt;
ぜひ使ってみて下さい。&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;

&lt;a href=&quot;http://px.moba8.net/svt/ejp?a8mat=2BLFVH+AS6N76+YKQ+ZS5GH&amp;guid=on&quot;&gt;
&lt;img border=&quot;0&quot; width=&quot;300&quot; height=&quot;60&quot; alt=&quot;&quot; src=&quot;http://www26.moba8.net/svt/bgt?aid=140408477652&amp;wid=001&amp;eno=01&amp;mid=m00000004481006010000&amp;mc=1&quot;&gt;&lt;/a&gt;
&lt;img border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://www13.moba8.net/0.jpg?a8mat=2BLFVH+AS6N76+YKQ+ZS5GH&amp;guid=on&quot; alt=&quot;&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/3524506497056650642/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/prefixpchobjective-c.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3524506497056650642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3524506497056650642'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/prefixpchobjective-c.html' title='_Prefix.pchファイルとは　objective-cの勉強'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-5680344949576683206</id><published>2012-07-10T14:47:00.003+09:00</published><updated>2014-09-17T17:08:04.461+09:00</updated><title type='text'>今表示しているViewを消す時(objective-c、cocoa)</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;これもいつも忘れるのでメモ。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s1&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;dismissModalViewControllerAnimated&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;ただ、子供や孫のビューを消すのは&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;いつも面倒なんですよね。。&lt;/span&gt;&lt;/div&gt;

&lt;br /&gt;&lt;br /&gt;
&lt;!-- Rakuten Widget FROM HERE --&gt;&lt;script type=&quot;text/javascript&quot;&gt;rakuten_design=&quot;slide&quot;;rakuten_affiliateId=&quot;0f163ead.f7973440.0f163eae.f5499fe3&quot;;rakuten_items=&quot;ctsmatch&quot;;rakuten_genreId=0;rakuten_size=&quot;468x160&quot;;rakuten_target=&quot;_blank&quot;;rakuten_theme=&quot;gray&quot;;rakuten_border=&quot;off&quot;;rakuten_auto_mode=&quot;off&quot;;rakuten_genre_title=&quot;off&quot;;rakuten_recommend=&quot;on&quot;;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://xml.affiliate.rakuten.co.jp/widget/js/rakuten_widget.js&quot;&gt;&lt;/script&gt;&lt;!-- Rakuten Widget TO HERE --&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/5680344949576683206/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/viewobjective-ccocoa.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/5680344949576683206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/5680344949576683206'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/viewobjective-ccocoa.html' title='今表示しているViewを消す時(objective-c、cocoa)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-5912780053813718127</id><published>2012-07-10T14:46:00.002+09:00</published><updated>2014-09-17T17:08:22.024+09:00</updated><title type='text'>UITableViewの戻るボタンを設置する方法</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-4K2gZApdVHOeJWc3Yc4Je1t30V91Zs6Yb4K4WAqFi8NClMl7Z78VjhmGYoAoC6lo1vEPV7zZ17RLxkES01eEcwJ9HI3xhgLhvE3p2-3BfJgw_saH9xmvyfkQ_-2WpFkesb856BBJas4/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-07-10+14.43.49%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-4K2gZApdVHOeJWc3Yc4Je1t30V91Zs6Yb4K4WAqFi8NClMl7Z78VjhmGYoAoC6lo1vEPV7zZ17RLxkES01eEcwJ9HI3xhgLhvE3p2-3BfJgw_saH9xmvyfkQ_-2WpFkesb856BBJas4/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-07-10+14.43.49%EF%BC%89.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
テーブルビューの左上に出てくる戻るボタンの&lt;br /&gt;
表示方法です。&lt;br /&gt;
&lt;br /&gt;
いつも忘れてしまうのでメモ。&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;UIButton&lt;/span&gt; *backButton = [&lt;span class=&quot;s1&quot;&gt;UIButton&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;buttonWithType&lt;/span&gt;:&lt;span class=&quot;s3&quot;&gt;101&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;backButton.&lt;/span&gt;showsTouchWhenHighlighted&lt;span class=&quot;s4&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;NO&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[backButton &lt;/span&gt;addTarget&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;action&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;@selector&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;backtop&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;:) &lt;/span&gt;forControlEvents&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;UIControlEventTouchUpInside&lt;span class=&quot;s4&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[backButton &lt;/span&gt;setTitle&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;戻る&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;forState&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;UIControlStateNormal&lt;span class=&quot;s4&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;UIBarButtonItem&lt;span class=&quot;s4&quot;&gt; *back = [[&lt;/span&gt;UIBarButtonItem&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;initWithCustomView&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;:backButton];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;navigationItem&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;leftBarButtonItem&lt;span class=&quot;s4&quot;&gt; = back;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[backButton &lt;span class=&quot;s2&quot;&gt;release&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[back &lt;span class=&quot;s2&quot;&gt;release&lt;/span&gt;];&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
-----&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ボタンを押したときのアクションは、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
こんな感じで出来ます。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
------&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
-(&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)backtop:(&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;)sender {&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
//ここに処理を明記&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
}&lt;/div&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;------&lt;br /&gt;


&lt;br /&gt;&lt;br /&gt;
&lt;!-- Rakuten Widget FROM HERE --&gt;&lt;script type=&quot;text/javascript&quot;&gt;rakuten_design=&quot;slide&quot;;rakuten_affiliateId=&quot;0f163ead.f7973440.0f163eae.f5499fe3&quot;;rakuten_items=&quot;ctsmatch&quot;;rakuten_genreId=0;rakuten_size=&quot;468x160&quot;;rakuten_target=&quot;_blank&quot;;rakuten_theme=&quot;gray&quot;;rakuten_border=&quot;off&quot;;rakuten_auto_mode=&quot;off&quot;;rakuten_genre_title=&quot;off&quot;;rakuten_recommend=&quot;on&quot;;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://xml.affiliate.rakuten.co.jp/widget/js/rakuten_widget.js&quot;&gt;&lt;/script&gt;&lt;!-- Rakuten Widget TO HERE --&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/5912780053813718127/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/uitableview.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/5912780053813718127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/5912780053813718127'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/uitableview.html' title='UITableViewの戻るボタンを設置する方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-4K2gZApdVHOeJWc3Yc4Je1t30V91Zs6Yb4K4WAqFi8NClMl7Z78VjhmGYoAoC6lo1vEPV7zZ17RLxkES01eEcwJ9HI3xhgLhvE3p2-3BfJgw_saH9xmvyfkQ_-2WpFkesb856BBJas4/s72-c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-07-10+14.43.49%EF%BC%89.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-1691380651253444565</id><published>2012-07-05T23:09:00.000+09:00</published><updated>2014-09-17T17:08:32.765+09:00</updated><title type='text'>NSDataやNSArrayなどの変換方法(objective-c)cocoa</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;// NSDataオブジェクトへ変換(エンコード)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;NSData *data = [NSKeyedArchiver archivedDataWithRootObject:obj];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;// 変換前のオブジェクトに復元(デコード)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;NSArray *array = [NSKeyedUnarchiver unarchiveObjectWithData:data];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;こんな感じでNSData、NSArray両方の変換が出来ます。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;分からなくてエラーがいっぱい出て大変でした。。。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #009800; font-family: &#39;Hiragino Kaku Gothic ProN&#39;; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;br /&gt;&lt;br /&gt;
&lt;!-- Rakuten Widget FROM HERE --&gt;&lt;script type=&quot;text/javascript&quot;&gt;rakuten_design=&quot;slide&quot;;rakuten_affiliateId=&quot;0f163ead.f7973440.0f163eae.f5499fe3&quot;;rakuten_items=&quot;ctsmatch&quot;;rakuten_genreId=0;rakuten_size=&quot;468x160&quot;;rakuten_target=&quot;_blank&quot;;rakuten_theme=&quot;gray&quot;;rakuten_border=&quot;off&quot;;rakuten_auto_mode=&quot;off&quot;;rakuten_genre_title=&quot;off&quot;;rakuten_recommend=&quot;on&quot;;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://xml.affiliate.rakuten.co.jp/widget/js/rakuten_widget.js&quot;&gt;&lt;/script&gt;&lt;!-- Rakuten Widget TO HERE --&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/1691380651253444565/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/nsdatansarrayobjective-ccocoa.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/1691380651253444565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/1691380651253444565'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/nsdatansarrayobjective-ccocoa.html' title='NSDataやNSArrayなどの変換方法(objective-c)cocoa'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-7308403412245885955</id><published>2012-07-05T16:21:00.001+09:00</published><updated>2014-09-17T17:08:45.529+09:00</updated><title type='text'>viewを呼び出す時のアニメーションを設定する方法（modalview）iphoneアプリの作り方</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
アニメーションの種類を&lt;span style=&quot;background-color: white;&quot;&gt;指定して&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
新しいviewを呼び出す時の方法です。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
これは、&lt;span style=&quot;background-color: white;&quot;&gt;-(&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;background-color: white;&quot;&gt;IBAction&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;)toptopage:(&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;background-color: white;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;)senderという&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
メソッドをUIButtonに設定して、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
view1を呼び出しているところです。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
-(&lt;span class=&quot;s1&quot;&gt;IBAction&lt;/span&gt;)toptopage:(&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;)sender {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;//&lt;/span&gt;最初の画面の名前を指定&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;view1&lt;/span&gt;&amp;nbsp;*controller = [[&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;view1&amp;nbsp;alloc&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;initWithNibName&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;@&quot;view1&quot;&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;bundle&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;// &lt;/span&gt;アニメーションの種類を設定（ここでは画面が前後にくるっとまわるやつ）&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;controller.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;modalTransitionStyle&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; = &lt;/span&gt;UIModalTransitionStyleFlipHorizontal&lt;span class=&quot;s4&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;presentModalViewController&lt;span class=&quot;s4&quot;&gt;:controller &lt;/span&gt;animated&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[controller &lt;span class=&quot;s5&quot;&gt;release&lt;/span&gt;];&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
アニメーションの種類はこんなにたくさんあります。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;UIModalTransitionStyleCoverVertical&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
画面の下から上にビューがにょきっと出てくるタイプです。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
閉じる時はビューが下にスライドして戻ります。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
これはデフォルトのトランジションスタイルです。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;UIModalTransitionStyleFlipHorizontal&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
今回のサンプルで使用したスタイルです。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
３Dみたいに、画面がくるっとまわるタイプで、背面だったところが、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
正面になるような動きをします。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;UIModalTransitionStyleCrossDissolve&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;現在のビューがだんだん薄くなって、もともとあったビューが&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;だんだん見えてくるタイプです。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;フェードイン＆フェードアウトでビューを表示／非表示することが出来ます。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;UIModalTransitionStylePartialCurl&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ページがくるっと上にめくれるタイプのスタイルです。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ただ、いろいろと例外があるので、使い方には注意が必要です。&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;

&lt;!-- Rakuten Widget FROM HERE --&gt;&lt;script type=&quot;text/javascript&quot;&gt;rakuten_design=&quot;slide&quot;;rakuten_affiliateId=&quot;0f163ead.f7973440.0f163eae.f5499fe3&quot;;rakuten_items=&quot;ctsmatch&quot;;rakuten_genreId=0;rakuten_size=&quot;468x160&quot;;rakuten_target=&quot;_blank&quot;;rakuten_theme=&quot;gray&quot;;rakuten_border=&quot;off&quot;;rakuten_auto_mode=&quot;off&quot;;rakuten_genre_title=&quot;off&quot;;rakuten_recommend=&quot;on&quot;;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://xml.affiliate.rakuten.co.jp/widget/js/rakuten_widget.js&quot;&gt;&lt;/script&gt;&lt;!-- Rakuten Widget TO HERE --&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/7308403412245885955/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/viewmodalviewiphone.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/7308403412245885955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/7308403412245885955'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/viewmodalviewiphone.html' title='viewを呼び出す時のアニメーションを設定する方法（modalview）iphoneアプリの作り方'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-169037140783593493</id><published>2012-07-04T23:28:00.004+09:00</published><updated>2012-07-04T23:28:46.506+09:00</updated><title type='text'>Xcodeのシミュレーターでiphoneのキャプチャ画像をとる方法！（apple connectでアプリをリリース時用に便利！）</title><content type='html'>いつも、アプリをリリースする時は、&lt;br /&gt;
実機に作成したアプリをインストールして、&lt;br /&gt;
iphoneの実機でキャプチャをとっていたのですが、&lt;br /&gt;
&lt;br /&gt;
iphoneのバージョンをアップさせたら、&lt;br /&gt;
私が使っているXcodeでは対応していなくて、&lt;br /&gt;
iphoneの方にアプリをインストールすることが出来ませんでした。。&lt;br /&gt;
&lt;br /&gt;
なので、どうやってキャプチャ画像をとろうかなと悩んでいたところ、&lt;br /&gt;
いいソフトに出会えたのでご紹介します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iOS-Simulator Cropper&lt;br /&gt;
&lt;a href=&quot;http://www.curioustimes.de/iphonesimulatorcropper/&quot;&gt;http://www.curioustimes.de/iphonesimulatorcropper/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これは、Xcodeのシミュレーターで表示している画像を&lt;br /&gt;
キャプチャ画像として指定したフォルダに保存してくれる&lt;br /&gt;
ソフトです。&lt;br /&gt;
&lt;br /&gt;
iphoneのアプリをitunes connectからアップロードする際、&lt;br /&gt;
640×960の指定されたサイズでないと、&lt;br /&gt;
アップロードすることが出来ないので、&lt;br /&gt;
command + shift + 4&lt;br /&gt;
ではなかなか指定したサイズでキャプチャが取れないため、&lt;br /&gt;
今回のソフトが大活躍！！！！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLohEFO3ziiYjMMxjsry_aoR92tS4FNWuak0hyphenhyphen5PXFC6hLKdIsEOxO1_MKnACwuohAe4cLTCDWJeel4fPfPlahpGF0sCq7VjI-OsnTlPuLg_rcsA9kAU53dQ6AUZr4iBHNyyTagafXjG0/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-07-04+23.25.22%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLohEFO3ziiYjMMxjsry_aoR92tS4FNWuak0hyphenhyphen5PXFC6hLKdIsEOxO1_MKnACwuohAe4cLTCDWJeel4fPfPlahpGF0sCq7VjI-OsnTlPuLg_rcsA9kAU53dQ6AUZr4iBHNyyTagafXjG0/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-07-04+23.25.22%EF%BC%89.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
最初のプルダウンのところで、&lt;br /&gt;
どんなキャプチャ画像をとりたいかを指定して、&lt;br /&gt;
ディレクトリーのところに、画像を保存したいフォルダのパスを指定。&lt;br /&gt;
&lt;br /&gt;
その下のファイルネイムのところで、&lt;br /&gt;
キャプチャをとった際の画像保存名を指定します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
それで右下のスクリーンショットボタンを押すと、&lt;br /&gt;
Xcodeのシミュレーターで表示している画像を自動的にキャプチャしてくれます。&lt;br /&gt;
&lt;br /&gt;
ただ、私が使用した時は、&lt;br /&gt;
キャプチャのサイズが320× 480だったので、&lt;br /&gt;
そのあとサイズを変更してアップロードできるサイズにリサイズしたのですが、、&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
もしよかったら使ってみて下さいー！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/169037140783593493/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/xcodeiphoneapple-connect.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/169037140783593493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/169037140783593493'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/xcodeiphoneapple-connect.html' title='Xcodeのシミュレーターでiphoneのキャプチャ画像をとる方法！（apple connectでアプリをリリース時用に便利！）'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLohEFO3ziiYjMMxjsry_aoR92tS4FNWuak0hyphenhyphen5PXFC6hLKdIsEOxO1_MKnACwuohAe4cLTCDWJeel4fPfPlahpGF0sCq7VjI-OsnTlPuLg_rcsA9kAU53dQ6AUZr4iBHNyyTagafXjG0/s72-c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-07-04+23.25.22%EF%BC%89.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-3609715033036042321</id><published>2012-07-03T00:33:00.000+09:00</published><updated>2012-07-03T00:33:04.155+09:00</updated><title type='text'>for文で一気にオブジェクトを作成する cocoa、iphoneアプリの作りかた</title><content type='html'>何かオブジェクトを作成するとき、&lt;br /&gt;
&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;view1&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; = [[&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;UIButton&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;buttonWithType&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;UIButtonTypeCustom&lt;span class=&quot;s2&quot;&gt;] &lt;/span&gt;retain&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;view1&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;backgroundColor&lt;span class=&quot;s2&quot;&gt; = [&lt;/span&gt;UIColor&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;clearColor&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;view2&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; = [[&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;UIButton&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;buttonWithType&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;UIButtonTypeCustom&lt;span class=&quot;s2&quot;&gt;] &lt;/span&gt;retain&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;view2&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;backgroundColor&lt;span class=&quot;s2&quot;&gt; = [&lt;/span&gt;UIColor&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;clearColor&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;view3&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; = [[&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;UIButton&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;buttonWithType&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;UIButtonTypeCustom&lt;span class=&quot;s2&quot;&gt;] &lt;/span&gt;retain&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;view3&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;backgroundColor&lt;span class=&quot;s2&quot;&gt; = [&lt;/span&gt;UIColor&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;clearColor&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
・&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
・&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
・&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
こんな風におんなじようなコードをいくつも作成しなきゃいけない時があると思います。&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
ちょっとだけ表示させる位置が違うのに、&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
なんでおんなじようなものをいくつも書かなきゃいけないんだー！！&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
ってなりますよね。。&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
そこで、今回はfor文を使って、&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
簡単にオブジェクトを一気に作成する方法をご紹介します。&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
まずは気になるコードから。&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
------&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s1&quot;&gt;//======&lt;/span&gt;テキスト部分（タイトル）の設定&lt;span class=&quot;s1&quot;&gt;======&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *url = [&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;URLWithString&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;@&quot;http:/had1.txt&quot;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s5&quot;&gt; &lt;/span&gt;NSStringEncoding&lt;span class=&quot;s5&quot;&gt; usedEncoding;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;NSError&lt;/span&gt; *error;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;NSString&lt;/span&gt; *result = [&lt;span class=&quot;s6&quot;&gt;NSString&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;stringWithContentsOfURL&lt;/span&gt;:url &lt;span class=&quot;s7&quot;&gt;usedEncoding&lt;/span&gt;:&amp;amp;usedEncoding &lt;span class=&quot;s7&quot;&gt;error&lt;/span&gt;:&amp;amp;error];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;if&lt;/span&gt; (result == &lt;span class=&quot;s8&quot;&gt;nil&lt;/span&gt;) {&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;} &lt;span class=&quot;s8&quot;&gt;else&lt;/span&gt; {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;//&lt;/span&gt;一行づつ読み込んで処理する&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;NSArray&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt; *array = [result &lt;/span&gt;componentsSeparatedByString&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;\n&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;b&gt;//表示位置を指定するための数値を用意&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;int&lt;/span&gt; boxdata = &lt;span class=&quot;s10&quot;&gt;60&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;b&gt;//ここから繰り返し処理&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;for&lt;/span&gt; (&lt;span class=&quot;s8&quot;&gt;int&lt;/span&gt; i = &lt;span class=&quot;s10&quot;&gt;0&lt;/span&gt;; i &amp;lt; [array &lt;span class=&quot;s7&quot;&gt;count&lt;/span&gt;]; i++) {&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;UITextView&lt;/span&gt;* labelname[i];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i] = [[&lt;span class=&quot;s6&quot;&gt;UITextView&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s7&quot;&gt;initWithFrame&lt;/span&gt;:&lt;span class=&quot;s7&quot;&gt;CGRectMake&lt;/span&gt;(&lt;span class=&quot;s10&quot;&gt;90&lt;/span&gt;, boxdata, &lt;span class=&quot;s10&quot;&gt;220.0&lt;/span&gt;, &lt;span class=&quot;s10&quot;&gt;25.0&lt;/span&gt;)];&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i].&lt;span class=&quot;s6&quot;&gt;font&lt;/span&gt; = [&lt;span class=&quot;s6&quot;&gt;UIFont&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;fontWithName&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;HiraKakuProN-W6&quot;&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;size&lt;/span&gt;:&lt;span class=&quot;s10&quot;&gt;14&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i].&lt;span class=&quot;s6&quot;&gt;textAlignment&lt;/span&gt; = &lt;span class=&quot;s7&quot;&gt;UITextAlignmentLeft&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i].&lt;span class=&quot;s6&quot;&gt;editable&lt;/span&gt; = &lt;span class=&quot;s8&quot;&gt;NO&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i].&lt;span class=&quot;s6&quot;&gt;scrollEnabled&lt;/span&gt; = &lt;span class=&quot;s8&quot;&gt;NO&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i].&lt;/span&gt;userInteractionEnabled&lt;span class=&quot;s5&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;NO&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i].&lt;span class=&quot;s6&quot;&gt;textColor&lt;/span&gt; = [&lt;span class=&quot;s6&quot;&gt;UIColor&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;colorWithRed&lt;/span&gt;:&lt;span class=&quot;s10&quot;&gt;72&lt;/span&gt;/&lt;span class=&quot;s10&quot;&gt;256.0&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;green&lt;/span&gt;:&lt;span class=&quot;s10&quot;&gt;88&lt;/span&gt;/&lt;span class=&quot;s10&quot;&gt;256.0&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;blue&lt;/span&gt;:&lt;span class=&quot;s10&quot;&gt;89&lt;/span&gt;/&lt;span class=&quot;s10&quot;&gt;256.0&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;alpha&lt;/span&gt;:&lt;span class=&quot;s10&quot;&gt;1.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i].&lt;span class=&quot;s6&quot;&gt;backgroundColor&lt;/span&gt; =[&lt;span class=&quot;s6&quot;&gt;UIColor&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;whiteColor&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i].&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;autoresizingMask&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt; = &lt;/span&gt;UIViewAutoresizingFlexibleRightMargin&lt;span class=&quot;s5&quot;&gt; | &lt;/span&gt;UIViewAutoresizingFlexibleHeight&lt;span class=&quot;s5&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;labelname[i].&lt;span class=&quot;s6&quot;&gt;text&lt;/span&gt; = [array &lt;span class=&quot;s7&quot;&gt;objectAtIndex&lt;/span&gt;:i];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;span class=&quot;s8&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;s11&quot;&gt;wv&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;insertSubview&lt;/span&gt;:labelname[i] &lt;span class=&quot;s7&quot;&gt;atIndex&lt;/span&gt;:&lt;span class=&quot;s10&quot;&gt;1&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;b&gt;//表示位置をちょっとづつ変えていく&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;boxdata = boxdata + &lt;span class=&quot;s10&quot;&gt;61&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
------&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
コードをみてもらえれば、&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
やっている事がすぐに分かると思うのですが、&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
一つ前のブログでご紹介した様に、&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
外部にアップしているテキストデータを読み込み、&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
改行ごとに、一列づつテキストデータを保存。&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
保存したテキストデータを、&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
配列を利用して、for文で&lt;span style=&quot;background-color: white;&quot;&gt;順番にセットしています。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;今回つまずいたのは、&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;オブジェクトの名前も配列のように&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s6&quot;&gt;UITextView&lt;/span&gt;* labelname[i];で用意してあげること。&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
これで少しはコードを書く行数が節約できました！&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/3609715033036042321/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/for-cocoaiphone.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3609715033036042321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3609715033036042321'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/for-cocoaiphone.html' title='for文で一気にオブジェクトを作成する cocoa、iphoneアプリの作りかた'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-1142756594169395923</id><published>2012-07-03T00:25:00.001+09:00</published><updated>2012-07-03T00:25:07.431+09:00</updated><title type='text'>外部のサーバーにアップされている情報をURLを指定して読み込む方法 iphoneアプリの作りかた</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
アプリの中に、オブジェクトとして保存してしまうと、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
リリースしたあとに気軽に中の情報を書き換える事が出来ません。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
なので、今後変更される予定があるものや、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
今後更新される可能性があるものは、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
外部に情報を保持し、そこの情報をアプリが読み込むという方法を&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
行なう事で、アプリ内の情報を気軽に更新することが出来ます。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
今回は、サーバーにアップされているテキストデータを読み込んで、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
アプリ内に表示する方法をご紹介します。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;--------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;//URLや読み込む際の文字コードを指定してファイルを読み込みます。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *url = [&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;URLWithString&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;@&quot;http://~~URL~~~.txt&quot;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s5&quot;&gt; &lt;/span&gt;NSStringEncoding&lt;span class=&quot;s5&quot;&gt; usedEncoding;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;NSError&lt;/span&gt; *error;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;NSString&lt;/span&gt; *result = [&lt;span class=&quot;s6&quot;&gt;NSString&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;stringWithContentsOfURL&lt;/span&gt;:url &lt;span class=&quot;s7&quot;&gt;usedEncoding&lt;/span&gt;:&amp;amp;usedEncoding &lt;span class=&quot;s7&quot;&gt;error&lt;/span&gt;:&amp;amp;error];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
//もし読み込んだ結果が何もなかった場合の処理&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;if&lt;/span&gt; (result == &lt;span class=&quot;s8&quot;&gt;nil&lt;/span&gt;) {&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;} &lt;span class=&quot;s8&quot;&gt;else&lt;/span&gt; {&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;//&lt;/span&gt;情報が読み込まれた時の処理&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;//改行ごとに、配列にテキストデータを保存します。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;NSArray&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt; *array = [result &lt;/span&gt;componentsSeparatedByString&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;\n&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;//デバッガに読み込まれた情報をかき出します。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;NSLog(@&quot;array = %@&quot; ,array);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;------------------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;こんな感じで外部のテキストデータを読み込むことが出来ました。&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/1142756594169395923/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/url-iphone.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/1142756594169395923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/1142756594169395923'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/url-iphone.html' title='外部のサーバーにアップされている情報をURLを指定して読み込む方法 iphoneアプリの作りかた'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-8832168837470697945</id><published>2012-07-03T00:17:00.001+09:00</published><updated>2012-07-03T00:17:21.730+09:00</updated><title type='text'>Xcodeで苦労して作ったファイルを空のファイルでa上書きしてしまった、、</title><content type='html'>以前して、何日間かかかけて苦労して作ったファイルを&lt;br /&gt;
空のファイルで上書き保存してしまいました。。&lt;br /&gt;
&lt;br /&gt;
いろいろ調べても、&lt;br /&gt;
デバックしたファイルから復元は出来ないし、&lt;br /&gt;
途方に暮れていたら、なんとゴミ箱に復元したかった&lt;br /&gt;
ヘッダファイルとメソッドファイルが捨てられてありました！！！&lt;br /&gt;
&lt;br /&gt;
xibの方で、再度アクションなどを繋げ直し、&lt;br /&gt;
何度か試行錯誤したらきちんとファイルが元通りになりました。&lt;br /&gt;
&lt;br /&gt;
昔のファイルはきちんと保管しておかなきゃいけないですね。。&lt;br /&gt;
ファイルを作り直していて、&lt;br /&gt;
いろいろ忘れていた事を思い出したのでメモ。&lt;br /&gt;
&lt;br /&gt;
以前こちらの記事で紹介してもらった、&lt;br /&gt;
NSUserdefaultの使い方。&lt;br /&gt;
&lt;a href=&quot;http://luminosite-jwell.blogspot.jp/2012/06/nsuserdefaultsiphone.html&quot;&gt;http://luminosite-jwell.blogspot.jp/2012/06/nsuserdefaultsiphone.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
■UIViewにUITableViewを自分で追加した時は、&lt;br /&gt;
きちんと&lt;span style=&quot;background-color: white;&quot;&gt;UITableViewDataSource, UITableViewDelegateを追加しないといけない。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;■UIPickerを使って、データを扱う時は、こちらも同じ様に、&lt;/span&gt;&lt;br /&gt;
UIPickerViewDelegate,UIPickerViewDataSourceを追加しないといけない。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;@interface&lt;/span&gt; okiniiri : UIViewController &amp;lt;UITableViewDataSource, UITableViewDelegate,UIPickerViewDelegate,UIPickerViewDataSource&amp;gt; {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;UIButton&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *&lt;/span&gt;customButton1&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;NSMutableArray&lt;span class=&quot;s2&quot;&gt; *&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;NSMutableArray&lt;span class=&quot;s2&quot;&gt; *&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;activities&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;UIPickerView&lt;span class=&quot;s2&quot;&gt; *&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;picker&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;UIButton&lt;span class=&quot;s2&quot;&gt; *&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;donebtn&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;UIView&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *&lt;/span&gt;doneview&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;IBOutlet&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;UITableView&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *&lt;/span&gt;categoryTableView&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;IBOutlet&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;UIBarButtonItem&lt;span class=&quot;s2&quot;&gt; *&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;sakujyobtn&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;@property&lt;/span&gt; (&lt;span class=&quot;s1&quot;&gt;nonatomic&lt;/span&gt;,&lt;span class=&quot;s1&quot;&gt;retain&lt;/span&gt;)UITableView *categoryTableView;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;@property&lt;/span&gt; (&lt;span class=&quot;s1&quot;&gt;nonatomic&lt;/span&gt;,&lt;span class=&quot;s1&quot;&gt;retain&lt;/span&gt;)UIButton *customButton1;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;@property&lt;/span&gt; (&lt;span class=&quot;s1&quot;&gt;nonatomic&lt;/span&gt;,&lt;span class=&quot;s1&quot;&gt;retain&lt;/span&gt;)UIPickerView *picker;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
@property&lt;span class=&quot;s5&quot;&gt; (&lt;/span&gt;nonatomic&lt;span class=&quot;s5&quot;&gt;,&lt;/span&gt;retain&lt;span class=&quot;s5&quot;&gt;)UIButton *donebtn;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
@property&lt;span class=&quot;s5&quot;&gt; (&lt;/span&gt;nonatomic&lt;span class=&quot;s5&quot;&gt;,&lt;/span&gt;retain&lt;span class=&quot;s5&quot;&gt;)UIView *doneview;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;@property&lt;/span&gt; (&lt;span class=&quot;s1&quot;&gt;nonatomic&lt;/span&gt;,&lt;span class=&quot;s1&quot;&gt;retain&lt;/span&gt;)UIBarButtonItem *sakujyobtn;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;@property&lt;/span&gt; (&lt;span class=&quot;s1&quot;&gt;nonatomic&lt;/span&gt;,&lt;span class=&quot;s1&quot;&gt;retain&lt;/span&gt;)NSMutableArray *contents;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
-(&lt;span class=&quot;s1&quot;&gt;IBAction&lt;/span&gt;)setEditing:(&lt;span class=&quot;s1&quot;&gt;BOOL&lt;/span&gt;)&lt;span class=&quot;s3&quot;&gt;editing&lt;/span&gt; animated:(&lt;span class=&quot;s1&quot;&gt;BOOL&lt;/span&gt;)animated;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
-(&lt;span class=&quot;s1&quot;&gt;IBAction&lt;/span&gt;)setEditingadd:(&lt;span class=&quot;s1&quot;&gt;BOOL&lt;/span&gt;)&lt;span class=&quot;s3&quot;&gt;editing&lt;/span&gt; animated:(&lt;span class=&quot;s1&quot;&gt;BOOL&lt;/span&gt;)animated;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
@end&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/8832168837470697945/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/xcodea.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/8832168837470697945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/8832168837470697945'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/07/xcodea.html' title='Xcodeで苦労して作ったファイルを空のファイルでa上書きしてしまった、、'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-2286540682231907378</id><published>2012-06-29T15:03:00.001+09:00</published><updated>2012-06-29T15:03:19.964+09:00</updated><title type='text'>UITableViewのtitleが表示されない！！（iphoneアプリの作り方　objective-c）</title><content type='html'>メインビューから、UITableviewを表示させようとした時、&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;self.titleを指定しているのに、タイトルが表示されなくて、&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
少し悩んでしまったので、ブログに書こうと思います。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
実際には、タイトルが一瞬表示されるのですが、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
どこかに消えてしまうんです。。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht18m0OxyRqCWubdCawzHXkuW-cT4Fq0iP_FvT29Edp3PkiHrMpOkASRwAUYqBKrcNGBFevpJK4bxOcKHf3C1rmLt3-wMFxLSGSXxsaeFPhFiTl6yX2k5EuJfrFJHW2RXgtd3f1bdeSiM/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-29+14.55.53%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;146&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht18m0OxyRqCWubdCawzHXkuW-cT4Fq0iP_FvT29Edp3PkiHrMpOkASRwAUYqBKrcNGBFevpJK4bxOcKHf3C1rmLt3-wMFxLSGSXxsaeFPhFiTl6yX2k5EuJfrFJHW2RXgtd3f1bdeSiM/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-29+14.55.53%EF%BC%89.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
↑ここの「タイトル」の所です。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
このテーブルビューを作成しているメソッドファイル（.m）には、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)viewDidLoad&amp;nbsp;の部分に、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
----&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;タイトル&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;navigationController&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;navigationBar&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;barStyle&lt;span class=&quot;s2&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;UIBarStyleBlackOpaque&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
----&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
と指定しているのに、&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
なぜかこの画面を呼び出すとタイトルのところが消えてしまいます。&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
[self.view insertSubview:self.navigationController.navigationBar atIndex:10];&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
とかやっても消えてしまうので、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
本当にいろいろ悩んでどこに消えてしまったのか探しました。。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
でも原因は、この画面を呼び出している呼び出し方に問題がありました。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
この画面を呼び出す際に、UIButtonに以下のようなアクションを設定したのですが、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
------&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;-(&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)torainingpush:(&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;)sender {&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;/*&lt;/span&gt;テーブルビュー（category.xib）を表示させる&lt;span class=&quot;s3&quot;&gt;*/&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;category&lt;/span&gt; *viewController = [[&lt;span class=&quot;s4&quot;&gt;category&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s5&quot;&gt;initWithNibName&lt;/span&gt;:&lt;span class=&quot;s6&quot;&gt;@&quot;category&quot;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;bundle&lt;/span&gt;:&lt;span class=&quot;s1&quot;&gt;nil&lt;/span&gt;];&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s7&quot;&gt; &lt;/span&gt;UINavigationController&lt;span class=&quot;s7&quot;&gt; *&lt;/span&gt;navigationController&lt;span class=&quot;s7&quot;&gt; = [[&lt;/span&gt;UINavigationController&lt;span class=&quot;s7&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;initWithRootViewController&lt;/span&gt;:viewController];&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s7&quot;&gt; &lt;/span&gt;navigationController&lt;span class=&quot;s7&quot;&gt;.&lt;/span&gt;navigationBar&lt;span class=&quot;s7&quot;&gt;.&lt;/span&gt;barStyle&lt;span class=&quot;s7&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;UIBarStyleBlackTranslucent&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s7&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;navigationController&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt; &lt;/span&gt;setNavigationBarHidden&lt;span class=&quot;s7&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt; &lt;/span&gt;animated&lt;span class=&quot;s7&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;];&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;/*&lt;/span&gt;モーダルビューとして、次のビューを表示する&lt;span class=&quot;s3&quot;&gt;*/&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s7&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt; &lt;/span&gt;presentModalViewController&lt;span class=&quot;s7&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;navigationController&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt; &lt;/span&gt;animated&lt;span class=&quot;s7&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;];&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
--------&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ここで、ナビゲーションバーの表示を非表示にしていました。。（＞＜！）&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s7&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;navigationController&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;&amp;nbsp;&lt;/span&gt;setNavigationBarHidden&lt;span class=&quot;s7&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;&amp;nbsp;&lt;/span&gt;animated&lt;span class=&quot;s7&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s7&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s7&quot;&gt;↑ここのとこです。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s7&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s7&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span class=&quot;s7&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;navigationController&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;&amp;nbsp;&lt;/span&gt;setNavigationBarHidden&lt;span class=&quot;s7&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;NO&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;&amp;nbsp;&lt;/span&gt;animated&lt;span class=&quot;s7&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;];&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;s7&quot;&gt;本当はNOに指定しないと表示されないのに。。&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;s7&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
NOで設定したら無事に表示される様になりました！&lt;/div&gt;
&lt;div&gt;
こんなに悩んだのに。。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
まだまだ未熟ものですね、&lt;/div&gt;
&lt;div&gt;
頑張ります。。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s7&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s7&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/2286540682231907378/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/uitableviewtitleiphoneobjective-c.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/2286540682231907378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/2286540682231907378'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/uitableviewtitleiphoneobjective-c.html' title='UITableViewのtitleが表示されない！！（iphoneアプリの作り方　objective-c）'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht18m0OxyRqCWubdCawzHXkuW-cT4Fq0iP_FvT29Edp3PkiHrMpOkASRwAUYqBKrcNGBFevpJK4bxOcKHf3C1rmLt3-wMFxLSGSXxsaeFPhFiTl6yX2k5EuJfrFJHW2RXgtd3f1bdeSiM/s72-c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-29+14.55.53%EF%BC%89.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-299147477375590458</id><published>2012-06-25T10:08:00.001+09:00</published><updated>2014-09-17T17:09:49.153+09:00</updated><title type='text'>IEでもCSSでグラデーションを実現する方法</title><content type='html'>IEでもCSSだけでグラデーションを実現する方法です。&lt;br /&gt;
&lt;br /&gt;
.grade {&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
background-color:#ffffff;&lt;br /&gt;
/* For WebKit (Safari, Google Chrome etc) */&lt;br /&gt;
background: -webkit-gradient(linear, left top, left bottom, from(#f3efe2), to(#ffffff));&lt;br /&gt;
/* For Mozilla/Gecko (Firefox etc) */&lt;br /&gt;
background: -moz-linear-gradient(top, #f3efe2, #ffffff);&lt;br /&gt;
/* For Internet Explorer 5.5 - 7 */&lt;br /&gt;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#f3efe2, endColorstr=#ffffff);&lt;br /&gt;
/* For Internet Explorer 8 */&lt;br /&gt;
-ms-filter: &quot;progid:DXImageTransform.Microsoft.gradient(startColorstr=#f3efe2, endColorstr=#ffffff)&quot;;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
fromからtoまでの色を指定することで、&lt;br /&gt;
きれいなグラデーションにすることが出来ます。&lt;br /&gt;
&lt;br /&gt;
クロムやfirefoxだと#fffで白を表現することができるのですが、&lt;br /&gt;
IEでは#fffffffとしっかり書かないと白にならずに、変なグラデーションになってしまいました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;br /&gt;&lt;!-- Rakuten Widget FROM HERE --&gt;&lt;script type=&quot;text/javascript&quot;&gt;rakuten_design=&quot;slide&quot;;rakuten_affiliateId=&quot;0f163ead.f7973440.0f163eae.f5499fe3&quot;;rakuten_items=&quot;ctsmatch&quot;;rakuten_genreId=0;rakuten_size=&quot;468x160&quot;;rakuten_target=&quot;_blank&quot;;rakuten_theme=&quot;gray&quot;;rakuten_border=&quot;off&quot;;rakuten_auto_mode=&quot;off&quot;;rakuten_genre_title=&quot;off&quot;;rakuten_recommend=&quot;on&quot;;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://xml.affiliate.rakuten.co.jp/widget/js/rakuten_widget.js&quot;&gt;&lt;/script&gt;&lt;!-- Rakuten Widget TO HERE --&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/299147477375590458/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/iecss.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/299147477375590458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/299147477375590458'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/iecss.html' title='IEでもCSSでグラデーションを実現する方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-5671650932553021153</id><published>2012-06-22T19:27:00.001+09:00</published><updated>2012-06-22T19:27:34.633+09:00</updated><title type='text'>UIMapViewで今いる場所を表示（addObserverで現在地を中心に表示させる）</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWRtvAXZChcftF1CSVeqUmfEVzLb-9yjpezr10vmtfLUYNLEL3qkuG0vCPO7gnNnM4qHkD3S2ITA390BOkd-PYxJrLheMpVT9SN1z1pPCk9TwiOyLGkmNSMA9fK-C15kUGStZG15682As/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-22+19.23.11%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWRtvAXZChcftF1CSVeqUmfEVzLb-9yjpezr10vmtfLUYNLEL3qkuG0vCPO7gnNnM4qHkD3S2ITA390BOkd-PYxJrLheMpVT9SN1z1pPCk9TwiOyLGkmNSMA9fK-C15kUGStZG15682As/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-22+19.23.11%EF%BC%89.png&quot; width=&quot;210&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IBOutletでマップを追加したら、&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;デリゲートをselfで設定し、&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;addObserverを追加し、ロケーションを表示させるキーを設定します。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)viewDidLoad {&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;super&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;viewDidLoad&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: white;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;background-color: white;&quot;&gt;mapView&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;delegate&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white;&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;background-color: white;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;mapView&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;userLocation&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;addObserver&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;forKeyPath&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;@&quot;location&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;options&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;context&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;//現在地&lt;/span&gt;を表示させるボタンにアクションを設定&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
- (&lt;span class=&quot;s2&quot;&gt;IBAction&lt;/span&gt;) showHere : (&lt;span class=&quot;s2&quot;&gt;id&lt;/span&gt;)sender {&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;// show current location&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;mapView&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;userLocation&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;title&lt;span class=&quot;s4&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;現在地&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;mapView&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;showsUserLocation&lt;span class=&quot;s4&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;mapView&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;centerCoordinate&lt;span class=&quot;s4&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;mapView&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;userLocation&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;location&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;coordinate&lt;span class=&quot;s4&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;- (&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;)observeValueForKeyPath:(&lt;/span&gt;&lt;span class=&quot;s8&quot; style=&quot;background-color: white;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt; *)keyPath ofObject:(&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;)object change:(&lt;/span&gt;&lt;span class=&quot;s8&quot; style=&quot;background-color: white;&quot;&gt;NSDictionary&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt; *)change context:(&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt; *)context { &lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;mapView&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;centerCoordinate&lt;span class=&quot;s4&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;mapView&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;userLocation&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;location&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;coordinate&lt;span class=&quot;s4&quot;&gt;; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
//&amp;nbsp;&lt;span class=&quot;s9&quot;&gt;一度しか現在地に移動しないなら&lt;/span&gt;&amp;nbsp;removeObserver&amp;nbsp;&lt;span class=&quot;s9&quot;&gt;する&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;

&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;mapView&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;userLocation&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;removeObserver&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;forKeyPath&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;@&quot;location&quot;&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;]; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
}&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
これで現在地を何度でも表示させる事が出来ます。&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/5671650932553021153/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/uimapviewaddobserver.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/5671650932553021153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/5671650932553021153'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/uimapviewaddobserver.html' title='UIMapViewで今いる場所を表示（addObserverで現在地を中心に表示させる）'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWRtvAXZChcftF1CSVeqUmfEVzLb-9yjpezr10vmtfLUYNLEL3qkuG0vCPO7gnNnM4qHkD3S2ITA390BOkd-PYxJrLheMpVT9SN1z1pPCk9TwiOyLGkmNSMA9fK-C15kUGStZG15682As/s72-c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-22+19.23.11%EF%BC%89.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-6757647545729906724</id><published>2012-06-18T23:00:00.000+09:00</published><updated>2012-06-19T10:16:56.519+09:00</updated><title type='text'>applicarion loaderでアプリをアップロードする際のエラー</title><content type='html'>application loaderでアプリをアップしようとしたら、&lt;br /&gt;
以下のエラーが。&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iPhone / iPod Touch : application executable contains unsupported architecture(s):i386&lt;br /&gt;
Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate.&lt;br /&gt;
Unable to extract codesigning entitlements from your application. Please make sure FlowChartBuilder.app is a valid Mach executable that&#39;s properly codesigned.&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Across the Star Cluster&lt;br /&gt;
iPhone App開発とかストーリーとかCGとか色々 普通に日記もあります。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://ameblo.jp/nukuchi/archive1-201011.html&quot;&gt;http://ameblo.jp/nukuchi/archive1-201011.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
↑&lt;br /&gt;
こちらのブログを参考にいろいろ試してみたのですが、&lt;br /&gt;
全然だめ、、&lt;br /&gt;
&lt;br /&gt;
再度構成からdistributeを作り直し、&lt;br /&gt;
設定をしたらうまく出来たので、その手順を忘れない様にメモ。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBMo4Nxwe85e20fYYz0YwsuIJIe6f4gxS3atequvmb5yHWONgHeE4Yu8awhqBaRslR2dy0m7LaT1-BsxoaLbvtgaNiyy99Qopug_J062VTatrqsmzd5AQ7NofZ5z8ILr4UHM1zLz2CgWI/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-19+10.08.54%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;333&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBMo4Nxwe85e20fYYz0YwsuIJIe6f4gxS3atequvmb5yHWONgHeE4Yu8awhqBaRslR2dy0m7LaT1-BsxoaLbvtgaNiyy99Qopug_J062VTatrqsmzd5AQ7NofZ5z8ILr4UHM1zLz2CgWI/s400/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-19+10.08.54%EF%BC%89.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
プロジェクト　＞　プロジェクト&quot;名前&quot;の情報　＞　構成&lt;br /&gt;
&lt;br /&gt;
Debugを複製して、名前をDistributeに。&lt;br /&gt;
下のビルドが使用するコマンドラインもDistributeに。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh7eRN8Bn8A443US7qS7-cNkC_Lpl6rDKc40cuXhjLEMSkLk7on9kLlTPXrK2Z9mQPebtuvaRbyYy5O5Vt5XQx5WyehzHzHlvfGi2ENM1ZNqxY1YtCOaURLWiiUo7Oj7lwYuRFPSRhbBI/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-19+10.09.32%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;background-color: white; clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;333&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh7eRN8Bn8A443US7qS7-cNkC_Lpl6rDKc40cuXhjLEMSkLk7on9kLlTPXrK2Z9mQPebtuvaRbyYy5O5Vt5XQx5WyehzHzHlvfGi2ENM1ZNqxY1YtCOaURLWiiUo7Oj7lwYuRFPSRhbBI/s400/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-19+10.09.32%EF%BC%89.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
同じ画面のビルドを選択肢、&lt;br /&gt;
コード署名IDを、Distribute用の署名に変更。&lt;br /&gt;
&lt;br /&gt;
（多分ココがDevelopper用になっていたからうまく行かなかったのかも、、）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhueNw1e4OxgypkHnOhbnZeJuvKyRmeqXY7qhL_Rd5y3SlNS1kKYHq5cffpLjHb_sxDBUQlbZ1rk1XPgvUv_1qYMguK_5I7sPUNfMrYelQ2RHyeAbwygaRnDFIsyz8BQm4l3RKq0Za9oCM/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-19+10.09.46%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhueNw1e4OxgypkHnOhbnZeJuvKyRmeqXY7qhL_Rd5y3SlNS1kKYHq5cffpLjHb_sxDBUQlbZ1rk1XPgvUv_1qYMguK_5I7sPUNfMrYelQ2RHyeAbwygaRnDFIsyz8BQm4l3RKq0Za9oCM/s400/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-19+10.09.46%EF%BC%89.png&quot; width=&quot;388&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ビルドする際に、ターゲットをDevice、アクティブな構成をDistributeを選択。&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;ビルドを行なう。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
最後にDistribute-iphoneosフォルダに出来た&lt;br /&gt;
XXX.app.dSYMじゃない方のファイルを圧縮して、&lt;br /&gt;
application loaderでアップ。&lt;br /&gt;
&lt;br /&gt;
これでエラーが消えてうまくアップすることができました！&lt;br /&gt;
あとはリジェクトされない様に審査を待つだけ！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/6757647545729906724/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/applicarion-loader.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/6757647545729906724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/6757647545729906724'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/applicarion-loader.html' title='applicarion loaderでアプリをアップロードする際のエラー'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBMo4Nxwe85e20fYYz0YwsuIJIe6f4gxS3atequvmb5yHWONgHeE4Yu8awhqBaRslR2dy0m7LaT1-BsxoaLbvtgaNiyy99Qopug_J062VTatrqsmzd5AQ7NofZ5z8ILr4UHM1zLz2CgWI/s72-c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-19+10.08.54%EF%BC%89.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-4158056081075875349</id><published>2012-06-18T21:40:00.004+09:00</published><updated>2014-09-17T17:10:14.208+09:00</updated><title type='text'>UIWevViewのリンクをsafariで開く方法（target=&quot;_blank&quot;で開かないリンクを開く！）</title><content type='html'>iphoneのUIWebViewで表示させているWEBページは、&lt;br /&gt;
WEB内でtarget=&quot;_blank&quot;が設定されていても、&lt;br /&gt;
UIWebView内で表示されてしまいます。&lt;br /&gt;
&lt;br /&gt;
UIWebView内でリンクをクリックした際に、&lt;br /&gt;
safariを立ち上げて別ページとしてページを開くには、&lt;br /&gt;
&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;BOOL&lt;/span&gt;)webView:(&lt;span class=&quot;s2&quot;&gt;UIWebView&lt;/span&gt; *)webView shouldStartLoadWithRequest:(&lt;span class=&quot;s2&quot;&gt;NSURLRequest&lt;/span&gt; *)request navigationType:(&lt;span class=&quot;s2&quot;&gt;UIWebViewNavigationType&lt;/span&gt;)navigationType&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
こちらを使います。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
これは、UIWebViewでページを開く際に、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
アプリ内で開くか、サファリを立ち上げて表示させるかを選択できます。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
return&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;NO&lt;span class=&quot;s1&quot;&gt;;のとき⇒サファリを開く&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
return&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;YES;のとき⇒アプリ内で開く&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;クリックしたかどうかの判断は以下の条件で分岐できます。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;font-size: x-large; font-weight: bold;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;(navigationType == &lt;/span&gt;UIWebViewNavigationTypeLinkClicked&lt;span class=&quot;s2&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;font-size: x-large; font-weight: bold;&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ただ、以下のものではリンクをクリックしても&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
リンク先が表示されなくなってしまうので、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
- (&lt;span class=&quot;s1&quot;&gt;BOOL&lt;/span&gt;)webView:(&lt;span class=&quot;s2&quot;&gt;UIWebView&lt;/span&gt; *)webView shouldStartLoadWithRequest:(&lt;span class=&quot;s2&quot;&gt;NSURLRequest&lt;/span&gt; *)request navigationType:(&lt;span class=&quot;s2&quot;&gt;UIWebViewNavigationType&lt;/span&gt;)navigationType {&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;return&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;NO&lt;span class=&quot;s4&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;} &lt;span class=&quot;s1&quot;&gt;else&lt;/span&gt; {&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;return&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;YES&lt;span class=&quot;s4&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;UIApplication&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;sharedApplication&lt;span class=&quot;s1&quot;&gt;] &lt;/span&gt;openURL&lt;span class=&quot;s1&quot;&gt;: [request &lt;/span&gt;URL&lt;span class=&quot;s1&quot;&gt;]];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;を書いてクリックされたリンクを開く様にしましょう。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;こんな感じです。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
------&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;BOOL&lt;/span&gt;)webView:(&lt;span class=&quot;s2&quot;&gt;UIWebView&lt;/span&gt; *)webView shouldStartLoadWithRequest:(&lt;span class=&quot;s2&quot;&gt;NSURLRequest&lt;/span&gt; *)request navigationType:(&lt;span class=&quot;s2&quot;&gt;UIWebViewNavigationType&lt;/span&gt;)navigationType {&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;(navigationType == &lt;/span&gt;UIWebViewNavigationTypeLinkClicked&lt;span class=&quot;s3&quot;&gt;) {&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;UIApplication&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;sharedApplication&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;openURL&lt;span class=&quot;s3&quot;&gt;: [request &lt;/span&gt;URL&lt;span class=&quot;s3&quot;&gt;]];&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;return&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;NO&lt;span class=&quot;s4&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;} &lt;span class=&quot;s1&quot;&gt;else&lt;/span&gt; {&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;return&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;YES&lt;span class=&quot;s4&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
------&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ぜひお試しください。&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;

&lt;br /&gt;&lt;br /&gt;
&lt;!-- Rakuten Widget FROM HERE --&gt;&lt;script type=&quot;text/javascript&quot;&gt;rakuten_design=&quot;slide&quot;;rakuten_affiliateId=&quot;0f163ead.f7973440.0f163eae.f5499fe3&quot;;rakuten_items=&quot;ctsmatch&quot;;rakuten_genreId=0;rakuten_size=&quot;468x160&quot;;rakuten_target=&quot;_blank&quot;;rakuten_theme=&quot;gray&quot;;rakuten_border=&quot;off&quot;;rakuten_auto_mode=&quot;off&quot;;rakuten_genre_title=&quot;off&quot;;rakuten_recommend=&quot;on&quot;;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://xml.affiliate.rakuten.co.jp/widget/js/rakuten_widget.js&quot;&gt;&lt;/script&gt;&lt;!-- Rakuten Widget TO HERE --&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/4158056081075875349/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/uiwevviewsafaritargetblank.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/4158056081075875349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/4158056081075875349'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/uiwevviewsafaritargetblank.html' title='UIWevViewのリンクをsafariで開く方法（target=&quot;_blank&quot;で開かないリンクを開く！）'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7908393109539339913.post-3192952367493891155</id><published>2012-06-13T19:43:00.001+09:00</published><updated>2012-06-13T19:43:08.352+09:00</updated><title type='text'>NSUserDefaultsを使って、簡単なデータを保存する！iphoneアプリの作りかた</title><content type='html'>iphoneアプリを作っていて、またハマってしまったのでメモ。&lt;br /&gt;
今日は、NSUserDefaultsを使って、簡単なデータを保存する方法です。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;【やりたいことを画像で説明します！】&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
文章で説明するのはちょっと大変なので、&lt;br /&gt;
画像を貼ってご説明したいと思います。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVGm8IAl2NRF3BUIwag81gLD39A830HQIsLy0CXm-7-RefhAhr474A5f9OygE-F9_lhynCGqBt-HBVhCH_0jPQoaM12uwMrgGizyJKU046XBCYnVQBi3y13djYPtaRRLfoUidSPvI3cyk/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-13+19.20.42%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVGm8IAl2NRF3BUIwag81gLD39A830HQIsLy0CXm-7-RefhAhr474A5f9OygE-F9_lhynCGqBt-HBVhCH_0jPQoaM12uwMrgGizyJKU046XBCYnVQBi3y13djYPtaRRLfoUidSPvI3cyk/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-13+19.20.42%EF%BC%89.png&quot; width=&quot;216&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
←こういうテーブルビューがあって、&lt;br /&gt;
　データを追加したり、削除したりすることが出来ます。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpeUvILtNP7tj0_BCByXgxuLdmnMYIilNbvvC-pU3I7xLKVgrZ8Z79cA1b9ZoDPQSeqm0_cY7kFs-0NeNxYJPbZmSHNI8rEHXnp8bP1b2_RCltldfStIR7os33d6_Ey8HSkui2epKaya4/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-13+19.20.49%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpeUvILtNP7tj0_BCByXgxuLdmnMYIilNbvvC-pU3I7xLKVgrZ8Z79cA1b9ZoDPQSeqm0_cY7kFs-0NeNxYJPbZmSHNI8rEHXnp8bP1b2_RCltldfStIR7os33d6_Ey8HSkui2epKaya4/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-13+19.20.49%EF%BC%89.png&quot; width=&quot;220&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
←追加ボタンを押したところ。&lt;br /&gt;
　ピッカーで選択した情報が、&lt;br /&gt;
　テーブルビューに反映されます。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsG5kjURsP0y6IsjcK2Q1SaNTZOAr1vx3At1YKrpkTBsDo2mfIQAUKdCVO8fADyxHc67Re2jjbBHJG-upju0m225u3ywpVUz351S721Vde45e9PZQlQEKCOSkZOtpe5iKzef__1GlfVtY/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-13+19.20.58%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsG5kjURsP0y6IsjcK2Q1SaNTZOAr1vx3At1YKrpkTBsDo2mfIQAUKdCVO8fADyxHc67Re2jjbBHJG-upju0m225u3ywpVUz351S721Vde45e9PZQlQEKCOSkZOtpe5iKzef__1GlfVtY/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-13+19.20.58%EF%BC%89.png&quot; width=&quot;216&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
←削除ボタンを押したところ。&lt;br /&gt;
　削除ボタンが「完了」に変わって、&lt;br /&gt;
　情報の左側にマイナスマークが出ます。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1Gs6Fa43_ow0xN8VL5Cl7jCOg6aI8kQLtmNKUD2nOAhFf6EYogUz18vrNvkRFf4-NOphKc9GJxwhkQQmo19cvXkwCrud621IYWMXjLouYsY0Y0OZVIQAPbYLYBSbJHx4BaYI-hdNjNVs/s1600/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-13+19.21.04%EF%BC%89.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1Gs6Fa43_ow0xN8VL5Cl7jCOg6aI8kQLtmNKUD2nOAhFf6EYogUz18vrNvkRFf4-NOphKc9GJxwhkQQmo19cvXkwCrud621IYWMXjLouYsY0Y0OZVIQAPbYLYBSbJHx4BaYI-hdNjNVs/s320/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-13+19.21.04%EF%BC%89.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
←マイナスマークを選択すると、&lt;br /&gt;
　Deleteボタンが出てきて、&lt;br /&gt;
　Deleteボタンを押すと、情報が削除されます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
こんな感じでテーブル内の情報を編集し、&lt;br /&gt;
その情報を次にアプリを開いた時も保存しておけるように、&lt;br /&gt;
今回はNSUserDefaultsを使用しました！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;【それでは早速中身の解説です！】&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
これが全部のソースですが、&lt;br /&gt;
ちょっと長いので、すこしづつ解説していきたいと思います。&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
@implementation&lt;span class=&quot;s1&quot;&gt; okiniiri&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;@synthesize&lt;/span&gt; customButton1;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;@synthesize&lt;/span&gt; categoryTableView;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
@synthesize&lt;span class=&quot;s1&quot;&gt; picker;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
@synthesize&lt;span class=&quot;s1&quot;&gt; donebtn;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
@synthesize&lt;span class=&quot;s1&quot;&gt; doneview;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;@synthesize&lt;/span&gt; sakujyobtn;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
@synthesize&lt;span class=&quot;s1&quot;&gt; contents;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)viewDidLoad {&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;super&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;viewDidLoad&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;view&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;backgroundColor&lt;span class=&quot;s3&quot;&gt; = [&lt;/span&gt;UIColor&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;blueColor&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//-- &lt;/span&gt;カスタムボタンの設定&lt;span class=&quot;s5&quot;&gt; &lt;/span&gt;その&lt;span class=&quot;s5&quot;&gt;1 --//&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;customButton1&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = [[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;UIButton&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;buttonWithType&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UIButtonTypeCustom&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;retain&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;s6&quot;&gt;customButton1&lt;/span&gt;.&lt;span class=&quot;s7&quot;&gt;frame&lt;/span&gt; = &lt;span class=&quot;s4&quot;&gt;CGRectMake&lt;/span&gt;(&lt;span class=&quot;s8&quot;&gt;8.0&lt;/span&gt;, &lt;span class=&quot;s8&quot;&gt;5.0&lt;/span&gt;, &lt;span class=&quot;s8&quot;&gt;30.0&lt;/span&gt;, &lt;span class=&quot;s8&quot;&gt;30.0&lt;/span&gt;);&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;customButton1&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;setImage&lt;span class=&quot;s3&quot;&gt;:[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;UIImage&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;imageNamed&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;back.png&quot;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;forState&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UIControlStateNormal&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;customButton1&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;addTarget&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;action&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;@selector&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s10&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;:) &lt;/span&gt;forControlEvents&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UIControlEventTouchUpInside&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;insertSubview&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;customButton1&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;atIndex&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//arrayforkey&lt;/span&gt;で保存されているファイルを呼び出す&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt; *_userDefaults = [&lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;standardUserDefaults&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt; *array;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;array = [_userDefaults &lt;span class=&quot;s4&quot;&gt;arrayForKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;if&lt;/span&gt; (array) {&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;ファイルがあった場合は、&lt;span class=&quot;s5&quot;&gt;contents&lt;/span&gt;にかき出す&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt; =&amp;nbsp; [array &lt;span class=&quot;s4&quot;&gt;mutableCopy&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;} &lt;span class=&quot;s2&quot;&gt;else&lt;/span&gt; {&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;ファイルがなかったら、&lt;span class=&quot;s5&quot;&gt;arrayforkey&lt;/span&gt;でファイルを作成、保存する&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt; = [[&lt;span class=&quot;s7&quot;&gt;NSMutableArray&lt;/span&gt; &lt;span class=&quot;s4&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s4&quot;&gt;initWithObjects&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;aa&quot;&lt;/span&gt;,&lt;span class=&quot;s9&quot;&gt;@&quot;a&quot;&lt;/span&gt;, &lt;span class=&quot;s9&quot;&gt;@&quot;b&quot;&lt;/span&gt;, &lt;span class=&quot;s9&quot;&gt;@&quot;c&quot;&lt;/span&gt;, &lt;span class=&quot;s2&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt; *array = &lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[_userDefaults &lt;span class=&quot;s4&quot;&gt;setObject&lt;/span&gt;:array &lt;span class=&quot;s4&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[_userDefaults &lt;span class=&quot;s4&quot;&gt;synchronize&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;activities&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = [[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSMutableArray&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;alloc&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;initWithObjects&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p9&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;@&quot;11111&quot;&lt;span class=&quot;s1&quot;&gt;, &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p9&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;@&quot;222222&quot;&lt;span class=&quot;s1&quot;&gt;, &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p9&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;@&quot;33333&quot;&lt;span class=&quot;s1&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;4444&quot;&lt;/span&gt;, &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p10&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;sakujyobtn&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;s14&quot;&gt;削除&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;テーブルのセルの行を決定&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s7&quot;&gt;NSInteger&lt;/span&gt;)tableView:(&lt;span class=&quot;s7&quot;&gt;UITableView&lt;/span&gt; *)tableView numberOfRowsInSection:(&lt;span class=&quot;s7&quot;&gt;NSInteger&lt;/span&gt;)section {&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s2&quot;&gt;return&lt;/span&gt; [&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt; &lt;span class=&quot;s4&quot;&gt;count&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;テーブルに表示する内容を決定する&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s7&quot;&gt;UITableViewCell&lt;/span&gt; *)tableView:(&lt;span class=&quot;s7&quot;&gt;UITableView&lt;/span&gt; *)tableView&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt; cellForRowAtIndexPath:(&lt;span class=&quot;s7&quot;&gt;NSIndexPath&lt;/span&gt; *)indexPath {&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;同じ形式のセルを使うため、そのセルを再利用する&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;UITableViewCell&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; *cell = [tableView &lt;/span&gt;dequeueReusableCellWithIdentifier&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;identifier&quot;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s2&quot;&gt;if&lt;/span&gt; (cell == &lt;span class=&quot;s2&quot;&gt;nil&lt;/span&gt;) {&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;基本となるセルがまだ出来てなかったらセルを作成する&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cell = [[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;UITableViewCell&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;alloc&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;initWithStyle&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UITableViewCellStyleDefault&lt;span class=&quot;s3&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&amp;nbsp; &lt;/span&gt;reuseIdentifier&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;identifier&quot;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;cell.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;selectionStyle&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = &lt;/span&gt;UITableViewCellSelectionStyleNone&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[cell &lt;/span&gt;autorelease&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//indexpath&lt;/span&gt;に表示するテキストを決定する&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s2&quot;&gt;if&lt;/span&gt; (indexPath.&lt;span class=&quot;s7&quot;&gt;row&lt;/span&gt; &amp;lt; [&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt; &lt;span class=&quot;s4&quot;&gt;count&lt;/span&gt;]) {&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cell.&lt;span class=&quot;s7&quot;&gt;textLabel&lt;/span&gt;.&lt;span class=&quot;s7&quot;&gt;text&lt;/span&gt; = [&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt; &lt;span class=&quot;s4&quot;&gt;objectAtIndex&lt;/span&gt;:indexPath.&lt;span class=&quot;s4&quot;&gt;row&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s2&quot;&gt;return&lt;/span&gt; cell;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;セル選択時のアクションを設定&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
-(&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)tableView:(&lt;span class=&quot;s7&quot;&gt;UITableView&lt;/span&gt; *)tableView didSelectRowAtIndexPath:(&lt;span class=&quot;s7&quot;&gt;NSIndexPath&lt;/span&gt; *)indexPath {&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
//&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;NSString* message = [contents objectAtIndex:indexPath.row];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSString&lt;/span&gt; *message = [&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt; &lt;span class=&quot;s4&quot;&gt;objectAtIndex&lt;/span&gt;:indexPath.&lt;span class=&quot;s4&quot;&gt;row&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;if&lt;/span&gt; (message == &lt;span class=&quot;s9&quot;&gt;@&quot;aaaaaa&quot;&lt;/span&gt;) {&lt;/div&gt;
&lt;div class=&quot;p9&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s15&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; *url = [&lt;/span&gt;&lt;span class=&quot;s15&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s16&quot;&gt;URLWithString&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;@&quot;https://www.facebook.com/sharer/sharer.php?u=http://douwashindan3310.appspot.com/kekka12.html&quot;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;UIApplication&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;sharedApplication&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;openURL&lt;span class=&quot;s3&quot;&gt;:url];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;} &lt;span class=&quot;s2&quot;&gt;else&lt;/span&gt; {&lt;/div&gt;
&lt;div class=&quot;p9&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s15&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; *url = [&lt;/span&gt;&lt;span class=&quot;s15&quot;&gt;NSURL&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s16&quot;&gt;URLWithString&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;@&quot;http://www.atmarkit.co.jp/fcoding/articles/objc/05/objc05b.html&quot;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;UIApplication&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;sharedApplication&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;openURL&lt;span class=&quot;s3&quot;&gt;:url];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;セルを本当に削除する&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
-(&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)tableView:(&lt;span class=&quot;s7&quot;&gt;UITableView&lt;/span&gt; *)tableView&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
commitEditingStyle:(&lt;span class=&quot;s7&quot;&gt;UITableViewCellEditingStyle&lt;/span&gt;)editingStyle&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
forRowAtIndexPath:(&lt;span class=&quot;s7&quot;&gt;NSIndexPath&lt;/span&gt; *)indexPath&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;{&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; (&lt;/span&gt;UITableViewCellEditingStyleDelete&lt;span class=&quot;s3&quot;&gt; == editingStyle) {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;データソースからデータを削除&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;removeObjectAtIndex&lt;span class=&quot;s3&quot;&gt;:indexPath.&lt;/span&gt;row&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;テーブルから該当セルを削除&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[tableView &lt;/span&gt;deleteRowsAtIndexPaths&lt;span class=&quot;s3&quot;&gt;:[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;arrayWithObject&lt;span class=&quot;s3&quot;&gt;:indexPath]&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt; &lt;/span&gt;withRowAnimation&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UITableViewRowAnimationFade&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;//&lt;span class=&quot;s11&quot;&gt;データを読み込んで削除&lt;/span&gt;=========================&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt; *_userDefaults = [&lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;standardUserDefaults&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt; *arr;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;arr = [_userDefaults &lt;span class=&quot;s4&quot;&gt;arrayForKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;]; &lt;span class=&quot;s17&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;s18&quot;&gt;読み込み&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;arr = &lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[_userDefaults &lt;span class=&quot;s4&quot;&gt;setObject&lt;/span&gt;:arr &lt;span class=&quot;s4&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[_userDefaults &lt;span class=&quot;s4&quot;&gt;synchronize&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;//&lt;span class=&quot;s11&quot;&gt;データを読み込んで削除&lt;/span&gt;=========================&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;} &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; (&lt;/span&gt;UITableViewCellEditingStyleInsert&lt;span class=&quot;s3&quot;&gt; == editingStyle) {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;データソースに１件追加&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;insertObject&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;new item&quot;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;atIndex&lt;span class=&quot;s3&quot;&gt;:(&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; - &lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;)];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;テーブルにセルを追加&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[tableView &lt;/span&gt;insertRowsAtIndexPaths&lt;span class=&quot;s3&quot;&gt;:[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;arrayWithObject&lt;span class=&quot;s3&quot;&gt;:indexPath]&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt; &lt;/span&gt;withRowAnimation&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UITableViewRowAnimationTop&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
-(&lt;span class=&quot;s2&quot;&gt;IBAction&lt;/span&gt;)setEditing:(&lt;span class=&quot;s2&quot;&gt;BOOL&lt;/span&gt;)&lt;span class=&quot;s7&quot;&gt;editing&lt;/span&gt; animated:(&lt;span class=&quot;s2&quot;&gt;BOOL&lt;/span&gt;)animated {&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;// &lt;/span&gt;編集モードにする&lt;/div&gt;
&lt;div class=&quot;p10&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;categoryTableView&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;editing&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; == &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;NO&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;categoryTableView&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;setEditing&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;animated&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p10&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;sakujyobtn&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;s14&quot;&gt;完了&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p10&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;} &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;categoryTableView&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;editing&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; == &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;)&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;categoryTableView&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;setEditing&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;NO&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;animated&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p10&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;sakujyobtn&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;s14&quot;&gt;削除&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;super&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;setEditing&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;editing&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;animated&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;-(&lt;/span&gt;UITableViewCellEditingStyle&lt;span class=&quot;s3&quot;&gt;)tableView:(&lt;/span&gt;UITableView&lt;span class=&quot;s3&quot;&gt;*)tableView&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&amp;nbsp; editingStyleForRowAtIndexPath:(&lt;span class=&quot;s7&quot;&gt;NSIndexPath&lt;/span&gt;*)indexPath&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;UITableViewCellEditingStyleDelete&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)didReceiveMemoryWarning {&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;// Releases the view if it doesn&#39;t have a superview.&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;super&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;didReceiveMemoryWarning&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)viewDidUnload {&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;super&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;viewDidUnload&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
//-- &lt;span class=&quot;s11&quot;&gt;アクションの設定&lt;/span&gt; --------------------------------//&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;// &lt;/span&gt;戻るボタンが押された時のアクションを設定します。&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
//-------------------------------------------------//&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)action:(&lt;span class=&quot;s2&quot;&gt;id&lt;/span&gt;)sender&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;表示していたビューを消す&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;dismissModalViewControllerAnimated&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
//-- &lt;span class=&quot;s11&quot;&gt;アクションの設定&lt;/span&gt; --------------------------------//&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;// &lt;/span&gt;追加ボタンが押された時のアクションを設定します。&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
//-------------------------------------------------//&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
-(&lt;span class=&quot;s2&quot;&gt;IBAction&lt;/span&gt;)setEditingadd:(&lt;span class=&quot;s2&quot;&gt;BOOL&lt;/span&gt;)&lt;span class=&quot;s7&quot;&gt;editing&lt;/span&gt; animated:(&lt;span class=&quot;s2&quot;&gt;BOOL&lt;/span&gt;)animated {&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;picker&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = [[[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;UIPickerView&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;alloc&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;initWithFrame&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;CGRectMake&lt;span class=&quot;s3&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;265&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;320&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;)] &lt;/span&gt;autorelease&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;picker&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;delegate&lt;span class=&quot;s3&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;picker&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;dataSource&lt;span class=&quot;s3&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;addSubview&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;picker&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;doneview&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = [[[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;UIView&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;alloc&lt;span class=&quot;s3&quot;&gt;]&lt;/span&gt;initWithFrame&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;CGRectMake&lt;span class=&quot;s3&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;225&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;320&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;40&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;)] &lt;/span&gt;autorelease&lt;span class=&quot;s3&quot;&gt;];&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;doneview&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;backgroundColor&lt;span class=&quot;s3&quot;&gt; = [&lt;/span&gt;UIColor&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;blackColor&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p10&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;doneview&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;alpha&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;addSubview&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;doneview&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;donebtn&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = [&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;UIButton&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;buttonWithType&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UIButtonTypeRoundedRect&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;donebtn&lt;/span&gt;.&lt;span class=&quot;s7&quot;&gt;frame&lt;/span&gt; = &lt;span class=&quot;s4&quot;&gt;CGRectMake&lt;/span&gt;(&lt;span class=&quot;s8&quot;&gt;230&lt;/span&gt;, &lt;span class=&quot;s8&quot;&gt;232&lt;/span&gt;, &lt;span class=&quot;s8&quot;&gt;80&lt;/span&gt;, &lt;span class=&quot;s8&quot;&gt;30&lt;/span&gt;);&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;donebtn&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;setTitle&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;@&quot;&lt;/span&gt;&lt;span class=&quot;s14&quot;&gt;完了&lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;forState&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UIControlStateNormal&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;donebtn&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;addTarget&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;action&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;@selector&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s10&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;:) &lt;/span&gt;forControlEvents&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UIControlEventTouchUpInside&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;addSubview&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;donebtn&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;列数の設定（設定する列の数を&lt;span class=&quot;s5&quot;&gt;return&lt;/span&gt;で返す）&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s7&quot;&gt;NSInteger&lt;/span&gt;) numberOfComponentsInPickerView:(&lt;span class=&quot;s7&quot;&gt;UIPickerView&lt;/span&gt; *)pickerView {&lt;/div&gt;
&lt;div class=&quot;p11&quot;&gt;
&lt;span class=&quot;s19&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s20&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;s19&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s21&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;s19&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;！！行も列も番号は&lt;span class=&quot;s5&quot;&gt;0&lt;/span&gt;から始まるので注意&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;列（&lt;span class=&quot;s5&quot;&gt;component&lt;/span&gt;の値で渡される）に対する、行数の設定（設定する行の数を&lt;span class=&quot;s5&quot;&gt;return&lt;/span&gt;で返す）&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s7&quot;&gt;NSInteger&lt;/span&gt;) pickerView: (&lt;span class=&quot;s7&quot;&gt;UIPickerView&lt;/span&gt;*)pView&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp;numberOfRowsInComponent:(&lt;span class=&quot;s7&quot;&gt;NSInteger&lt;/span&gt;) component {&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;　　return&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; [&lt;/span&gt;activities&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;列（&lt;span class=&quot;s5&quot;&gt;component&lt;/span&gt;の値）、行（&lt;span class=&quot;s5&quot;&gt;row&lt;/span&gt;の値）に対する表示するものを設定&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s7&quot;&gt;NSString&lt;/span&gt;*)pickerView: (&lt;span class=&quot;s7&quot;&gt;UIPickerView&lt;/span&gt;*)pView&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;titleForRow:(&lt;span class=&quot;s7&quot;&gt;NSInteger&lt;/span&gt;) row forComponent:(&lt;span class=&quot;s7&quot;&gt;NSInteger&lt;/span&gt;)component {&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; [&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;activities&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;objectAtIndex&lt;span class=&quot;s3&quot;&gt;:row];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;// &lt;/span&gt;呼ばれる&lt;span class=&quot;s5&quot;&gt;done&lt;/span&gt;メソッド&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
-(&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)done:(&lt;span class=&quot;s7&quot;&gt;UIButton&lt;/span&gt;*)button{&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;NSIndexPath&lt;span class=&quot;s3&quot;&gt;* indexPath = [&lt;/span&gt;NSIndexPath&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;indexPathForRow&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;count&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;inSection&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;/*NSInteger component = [picker selectedRowInComponent:0];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;NSString* datatitle = [NSString stringWithFormat:@&quot;%d&quot;,component];*/&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;//NSString *activity = [contents objectAtIndex: [picker selectedRowInComponent:0]];&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; *activity = [&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;activities&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;objectAtIndex&lt;span class=&quot;s3&quot;&gt;: [&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;picker&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;selectedRowInComponent&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;]];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSString&lt;/span&gt; *message = [[&lt;span class=&quot;s7&quot;&gt;NSString&lt;/span&gt; &lt;span class=&quot;s4&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s4&quot;&gt;initWithFormat&lt;/span&gt;: &lt;span class=&quot;s9&quot;&gt;@&quot;%@&quot;&lt;/span&gt;, activity];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt; &lt;span class=&quot;s4&quot;&gt;addObject&lt;/span&gt;:message];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;//&lt;span class=&quot;s11&quot;&gt;読み込んで追加&lt;/span&gt;=========================&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt; *_userDefaults = [&lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;standardUserDefaults&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt; *arr;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;NSMutableArray&lt;span class=&quot;s3&quot;&gt; *mArr;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;arr = [_userDefaults &lt;span class=&quot;s4&quot;&gt;arrayForKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;]; &lt;span class=&quot;s17&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;s18&quot;&gt;読み込み&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;mArr = [&lt;span class=&quot;s7&quot;&gt;NSMutableArray&lt;/span&gt; &lt;span class=&quot;s4&quot;&gt;arrayWithArray&lt;/span&gt;:arr];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[mArr &lt;span class=&quot;s4&quot;&gt;addObject&lt;/span&gt;:message];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;arr = mArr;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[_userDefaults &lt;span class=&quot;s4&quot;&gt;setObject&lt;/span&gt;:arr &lt;span class=&quot;s4&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[_userDefaults &lt;span class=&quot;s4&quot;&gt;synchronize&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;//&lt;span class=&quot;s11&quot;&gt;読み込んで追加&lt;/span&gt;=========================&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;//[contents addObject:datatitle];&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;categoryTableView&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;insertRowsAtIndexPaths&lt;span class=&quot;s3&quot;&gt;:[&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;arrayWithObject&lt;span class=&quot;s3&quot;&gt;:indexPath]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&amp;nbsp; &lt;/span&gt;withRowAnimation&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;UITableViewRowAnimationTop&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;// &lt;/span&gt;ここに何かの処理を記述する&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;// &lt;/span&gt;（引数の&lt;span class=&quot;s5&quot;&gt; button &lt;/span&gt;には呼び出し元の&lt;span class=&quot;s5&quot;&gt;UIButton&lt;/span&gt;オブジェクトが引き渡されてきます）&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;s6&quot;&gt;picker&lt;/span&gt;.&lt;span class=&quot;s7&quot;&gt;hidden&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;s6&quot;&gt;donebtn&lt;/span&gt;.&lt;span class=&quot;s7&quot;&gt;hidden&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p10&quot;&gt;
&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;doneview&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;hidden&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
- (&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)dealloc {&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; [&lt;span class=&quot;s2&quot;&gt;super&lt;/span&gt; &lt;span class=&quot;s4&quot;&gt;dealloc&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p10&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;contents&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
@end&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
-------&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ほんとに長いですね。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
今回は、『NSUserDefaultsを使って、簡単なデータを保存する』がテーマなので、&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
ココをじっくり説明したいと思います。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;１、まずはビューを開いたときに、以前登録してあるデータがあるか参照します。&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
- (&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)viewDidLoadのところですね。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;２、登録したデータがなかったら、データを用意して保存します。&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
//NSUserDefaultsを使うために初期設定をします。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
NSUserDefaults&lt;span class=&quot;s3&quot;&gt;&amp;nbsp;*_userDefaults = [&lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;standardUserDefaults&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s7&quot;&gt;//arrayForKeyで指定したキーで以前のデータを呼び出します。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt;&amp;nbsp;*array;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;array = [_userDefaults&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;arrayForKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;if&lt;/span&gt;&amp;nbsp;(array) {&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;ファイルがあった場合は、呼び出したデータを&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
//テーブルに表示させるためのNSMutableArrayに読み込みます。&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
//NSMutableArrayにNSArrayの情報をいれるには、mutableCopyを使います。&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&amp;nbsp;[array&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;mutableCopy&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;}&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;else&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;//&lt;/span&gt;ファイルがなかったら、&lt;span class=&quot;s5&quot;&gt;arrayforkey&lt;/span&gt;でファイルを作成、保存します。&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
//最初からテーブルに表示させるデータをcontentsに用意します。&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;&amp;nbsp;= [[&lt;span class=&quot;s7&quot;&gt;NSMutableArray&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;alloc&lt;/span&gt;]&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;initWithObjects&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;aa&quot;&lt;/span&gt;,&lt;span class=&quot;s9&quot;&gt;@&quot;a&quot;&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;s9&quot;&gt;@&quot;b&quot;&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;s9&quot;&gt;@&quot;c&quot;&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
//contentsの中身を保存させるために、arrayに代入します。&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
//NSUserDefaultsは、NSMutableArrayのデータを保持することが出来ないので。。&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt;&amp;nbsp;*array =&amp;nbsp;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
//どのキーで保存するかを指定します。&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;[_userDefaults&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;setObject&lt;/span&gt;:array&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
//データを上書き保存します。&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;[_userDefaults&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;synchronize&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;}&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;３、追加した情報を同じキーで上書き保存します。&lt;/b&gt;&lt;br /&gt;
左下の追加ボタンで情報を追加した際にデータが上書きされる様に設定します。&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p4&quot;&gt;
//まずはデータを&lt;span class=&quot;s11&quot;&gt;読み込みます。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt;&amp;nbsp;*_userDefaults = [&lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;standardUserDefaults&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt;&amp;nbsp;*arr;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;/span&gt;NSMutableArray&lt;span class=&quot;s3&quot;&gt;&amp;nbsp;*mArr;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;arr = [_userDefaults&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;arrayForKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;mArr = [&lt;span class=&quot;s7&quot;&gt;NSMutableArray&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;arrayWithArray&lt;/span&gt;:arr];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
//追加する情報をaddObjectで追加します。&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;[mArr&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;addObject&lt;/span&gt;:message];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;arr = mArr;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
//同じキーを指定して上書き保存します。&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;[_userDefaults&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;setObject&lt;/span&gt;:arr&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;[_userDefaults&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;synchronize&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;４、削除した情報を同じキーで上書き保存します。&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p4&quot;&gt;
//まずはデータを読み込みます。&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt;&amp;nbsp;*_userDefaults = [&lt;/span&gt;NSUserDefaults&lt;span class=&quot;s3&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;standardUserDefaults&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;NSArray&lt;/span&gt;&amp;nbsp;*arr;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;arr = [_userDefaults&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;arrayForKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&amp;nbsp;&lt;span class=&quot;s17&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;s18&quot;&gt;読み込み&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s18&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s18&quot;&gt;//現在の情報を上書きするために配列に代入します。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;arr =&amp;nbsp;&lt;span class=&quot;s6&quot;&gt;contents&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
//キーを指定して上書き保存します。&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;[_userDefaults&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;setObject&lt;/span&gt;:arr&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s9&quot;&gt;@&quot;datacontent&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;[_userDefaults&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;synchronize&lt;/span&gt;];&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
これで保存することが出来ました！&lt;/div&gt;
&lt;div&gt;
ぜひおためし下さい。&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://luminosite-jwell.blogspot.com/feeds/3192952367493891155/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/nsuserdefaultsiphone.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3192952367493891155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7908393109539339913/posts/default/3192952367493891155'/><link rel='alternate' type='text/html' href='http://luminosite-jwell.blogspot.com/2012/06/nsuserdefaultsiphone.html' title='NSUserDefaultsを使って、簡単なデータを保存する！iphoneアプリの作りかた'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11015580504627075683</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVGm8IAl2NRF3BUIwag81gLD39A830HQIsLy0CXm-7-RefhAhr474A5f9OygE-F9_lhynCGqBt-HBVhCH_0jPQoaM12uwMrgGizyJKU046XBCYnVQBi3y13djYPtaRRLfoUidSPvI3cyk/s72-c/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%EF%BC%882012-06-13+19.20.42%EF%BC%89.png" height="72" width="72"/><thr:total>1</thr:total></entry></feed>