<?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-5048025544779233799</id><updated>2024-09-15T11:19:55.577+09:00</updated><category term="マーケティング"/><category term="巻き紙電卓"/><category term="UIKit"/><category term="Objective-C"/><category term="iPhoneアプリ開発環境"/><category term="開発ドキュメント"/><category term="Macアプリ"/><category term="UITableView"/><category term="Mac操作"/><category term="ライブラリ"/><category term="Interface Builder"/><category term="iPadアプリ開発環境"/><category term="iPhoneアプリ概念"/><category term="アプリ紹介サイト"/><category term="Apple Developer Program"/><category term="JSON"/><category term="UIButton"/><category term="UIView"/><category term="iPhoneアプリ開発"/><category term="メモリ管理"/><category term="表"/><category term="UIPickerView"/><category term="UIViewController"/><category term="iAd"/><category term="オブジェクト分割"/><category term="ボタン"/><category term="マルチビュー"/><category term="CoreFoundation"/><category term="NSMutableArray"/><category term="NSString"/><category term="Twitter"/><category term="UIControEvent"/><category term="UIPrintInteractionController"/><category term="Xcode4"/><category term="nibファイル"/><category term="サンプルコード"/><category term="プロパティリスト"/><category term="文字列"/><category term="画像"/><category term="開発アプリ"/><category term="２Dグラフィクス"/><category term="＠property"/><category term="CoCoa"/><category term="C言語"/><category term="Facebook"/><category term="Files&#39;Owner"/><category term="First Responder"/><category term="Mac周辺機器"/><category term="ModalView"/><category term="MutableDeepCopy"/><category term="NSArray"/><category term="NSBundle"/><category term="NSDateFormatter"/><category term="NSDictionary"/><category term="NSIndexPath"/><category term="NSInteger"/><category term="NSMutableDictionary"/><category term="NSNumber"/><category term="NSObject"/><category term="NSUInteger"/><category term="Story Boad"/><category term="UIActionSheet"/><category term="UIActionSheetDelegate"/><category term="UIAleartView"/><category term="UIApplicationDelegate"/><category term="UIDatePicker"/><category term="UIFont"/><category term="UIImage"/><category term="UIImageView"/><category term="UILabel"/><category term="UIResponder"/><category term="UIScrollView"/><category term="UISlider"/><category term="UISwitch"/><category term="UITableViewCell"/><category term="UITableViewDataSorce"/><category term="UITableViewDelegate"/><category term="UITexitField"/><category term="UIWindow"/><category term="XCode"/><category term="alloc"/><category term="dealloc"/><category term="iOS5"/><category term="iPhoneOSレイヤー"/><category term="if_in"/><category term="init"/><category term="lazy loading"/><category term="mailto:"/><category term="release"/><category term="retain"/><category term="アニメーション"/><category term="エラー"/><category term="カテゴリ"/><category term="キャスト"/><category term="サブビュー"/><category term="ディレクトリ"/><category term="デザインパターン"/><category term="プロトコル"/><category term="プロパティ"/><category term="メソッド"/><category term="ルートコントローラ"/><category term="代入"/><category term="動画"/><category term="回転"/><category term="型"/><category term="文字列表示"/><category term="関数"/><category term="高速列挙"/><category term="＠class"/><category term="＠selector"/><title type='text'>モバ造の家に突然iMacがやって来た!!</title><subtitle type='html'>酔っぱらって買ってしまったiMacの行く末は...&lt;br&gt;&#xa;&lt;br&gt;&#xa;iPhone App 「巻き紙電卓」できました。よろしくね！！</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://moba-mac.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048025544779233799/posts/default?max-results=3&amp;redirect=false'/><link rel='alternate' type='text/html' href='http://moba-mac.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5048025544779233799/posts/default?start-index=4&amp;max-results=3&amp;redirect=false'/><author><name>mobazo</name><uri>http://www.blogger.com/profile/07701936867534674293</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>282</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>3</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5048025544779233799.post-5756985996819607493</id><published>2014-04-24T01:40:00.002+09:00</published><updated>2014-04-24T01:40:18.518+09:00</updated><title type='text'>iOS4からのアニメーションはanimateWithDuration: が標準</title><content type='html'>いままで、Viewのアニメーションは、beginAnimations:を使ってたけど、なんとiOS4からは、ブロック構文をつかったanimateWithDurationが普通なのな。&lt;br /&gt;
&lt;br /&gt;
なぜここに行き着いたかというと、アニメーションを２つ続けるとうまく動かない（並列動作してしまう）ため、もう少しうまく動かしたかったためです。&lt;br /&gt;
&lt;br /&gt;
で、結果は次のコード。隠してからcompletionで表示すればいいということになります。&lt;br /&gt;
&lt;br /&gt;
今ひとつ文法理解していないけど、こういうことですｗ&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
- (&lt;span style=&quot;color: #bb2ca2;&quot;&gt;void&lt;/span&gt;)hideAndShow_hideView:(&lt;span style=&quot;color: #703daa;&quot;&gt;UIView&lt;/span&gt; *)hideView showView:(&lt;span style=&quot;color: #703daa;&quot;&gt;UIView&lt;/span&gt; *)showView{&lt;/div&gt;
&lt;div style=&quot;color: #008400; font-family: &#39;Hiragino Kaku Gothic ProN&#39;; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Menlo;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Menlo;&quot;&gt;// &lt;/span&gt;アニメーションでビューを隠す&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bb2ca2;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;view&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;frame&lt;span style=&quot;color: black;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #3d1d81;&quot;&gt;CGRectMake&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #272ad8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, [[&lt;/span&gt;UIScreen&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81;&quot;&gt;mainScreen&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81;&quot;&gt;bounds&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;].&lt;/span&gt;size&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;height&lt;span style=&quot;color: black;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #272ad8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, [[&lt;/span&gt;UIScreen&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81;&quot;&gt;mainScreen&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81;&quot;&gt;bounds&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;].&lt;/span&gt;size&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;width&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #272ad8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span style=&quot;color: #703daa;&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;animateWithDuration&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #272ad8;&quot;&gt;1.0f&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3d1d81;&quot;&gt;delay&lt;/span&gt;:&lt;span style=&quot;color: #272ad8;&quot;&gt;0.0f&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;options&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;UIViewAnimationOptionCurveEaseInOut&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3d1d81;&quot;&gt;animations&lt;/span&gt;:^{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #703daa;&quot;&gt;view&lt;/span&gt;.&lt;span style=&quot;color: #703daa;&quot;&gt;frame&lt;/span&gt; = &lt;span style=&quot;color: #3d1d81;&quot;&gt;CGRectMake&lt;/span&gt;(&lt;span style=&quot;color: #272ad8;&quot;&gt;0&lt;/span&gt;, [[&lt;span style=&quot;color: #703daa;&quot;&gt;UIScreen&lt;/span&gt; &lt;span style=&quot;color: #3d1d81;&quot;&gt;mainScreen&lt;/span&gt;] &lt;span style=&quot;color: #3d1d81;&quot;&gt;bounds&lt;/span&gt;].&lt;span style=&quot;color: #703daa;&quot;&gt;size&lt;/span&gt;.&lt;span style=&quot;color: #703daa;&quot;&gt;height&lt;/span&gt;-&lt;span style=&quot;color: #272ad8;&quot;&gt;50&lt;/span&gt;, [[&lt;span style=&quot;color: #703daa;&quot;&gt;UIScreen&lt;/span&gt; &lt;span style=&quot;color: #3d1d81;&quot;&gt;mainScreen&lt;/span&gt;] &lt;span style=&quot;color: #3d1d81;&quot;&gt;bounds&lt;/span&gt;].&lt;span style=&quot;color: #703daa;&quot;&gt;size&lt;/span&gt;.&lt;span style=&quot;color: #703daa;&quot;&gt;width&lt;/span&gt;, &lt;span style=&quot;color: #272ad8;&quot;&gt;100&lt;/span&gt;);&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3d1d81;&quot;&gt;completion&lt;/span&gt;:^(&lt;span style=&quot;color: #bb2ca2;&quot;&gt;BOOL&lt;/span&gt; finished){&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hideView.&lt;span style=&quot;color: #703daa;&quot;&gt;hidden&lt;/span&gt; = &lt;span style=&quot;color: #bb2ca2;&quot;&gt;YES&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; showView.&lt;span style=&quot;color: #703daa;&quot;&gt;hidden&lt;/span&gt; = &lt;span style=&quot;color: #bb2ca2;&quot;&gt;NO&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;span style=&quot;color: #703daa;&quot;&gt;UIView&lt;/span&gt; &lt;span style=&quot;color: #3d1d81;&quot;&gt;animateWithDuration&lt;/span&gt;:&lt;span style=&quot;color: #272ad8;&quot;&gt;1.0f&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3d1d81;&quot;&gt;delay&lt;/span&gt;:&lt;span style=&quot;color: #272ad8;&quot;&gt;0.0f&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3d1d81;&quot;&gt;options&lt;/span&gt;:&lt;span style=&quot;color: #3d1d81;&quot;&gt;UIViewAnimationOptionCurveEaseInOut&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3d1d81;&quot;&gt;animations&lt;/span&gt;:^{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #703daa;&quot;&gt;view&lt;/span&gt;.&lt;span style=&quot;color: #703daa;&quot;&gt;frame&lt;/span&gt; = &lt;span style=&quot;color: #3d1d81;&quot;&gt;CGRectMake&lt;/span&gt;(&lt;span style=&quot;color: #272ad8;&quot;&gt;0&lt;/span&gt;, [[&lt;span style=&quot;color: #703daa;&quot;&gt;UIScreen&lt;/span&gt; &lt;span style=&quot;color: #3d1d81;&quot;&gt;mainScreen&lt;/span&gt;] &lt;span style=&quot;color: #3d1d81;&quot;&gt;bounds&lt;/span&gt;].&lt;span style=&quot;color: #703daa;&quot;&gt;size&lt;/span&gt;.&lt;span style=&quot;color: #703daa;&quot;&gt;height&lt;/span&gt;-&lt;span style=&quot;color: #272ad8;&quot;&gt;100&lt;/span&gt;, [[&lt;span style=&quot;color: #703daa;&quot;&gt;UIScreen&lt;/span&gt; &lt;span style=&quot;color: #3d1d81;&quot;&gt;mainScreen&lt;/span&gt;] &lt;span style=&quot;color: #3d1d81;&quot;&gt;bounds&lt;/span&gt;].&lt;span style=&quot;color: #703daa;&quot;&gt;size&lt;/span&gt;.&lt;span style=&quot;color: #703daa;&quot;&gt;width&lt;/span&gt;, &lt;span style=&quot;color: #272ad8;&quot;&gt;100&lt;/span&gt;);&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3d1d81;&quot;&gt;completion&lt;/span&gt;:^(&lt;span style=&quot;color: #bb2ca2;&quot;&gt;BOOL&lt;/span&gt; finished){&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; ];&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://moba-mac.blogspot.com/feeds/5756985996819607493/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://moba-mac.blogspot.com/2014/04/ios4animatewithduration.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048025544779233799/posts/default/5756985996819607493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048025544779233799/posts/default/5756985996819607493'/><link rel='alternate' type='text/html' href='http://moba-mac.blogspot.com/2014/04/ios4animatewithduration.html' title='iOS4からのアニメーションはanimateWithDuration: が標準'/><author><name>mobazo</name><uri>http://www.blogger.com/profile/07701936867534674293</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-5048025544779233799.post-8439676419871988258</id><published>2014-04-22T08:07:00.004+09:00</published><updated>2014-04-22T08:07:34.206+09:00</updated><title type='text'>UITabbarControllerでTabbarItemが灰色で見えない</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
これ絶対ハマりません？&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&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/AVvXsEhc5qE6rSSmiCAPKqerdD8MjcCLaAAARnrQecplT18Q1IdvT9j2FeU4SuZozTIIB6kOpgyxcrlyMhIzUk7KwsC9yletj_r5n7Z2VT7Y9P5HevoGrLAXJoiD8OghF2Kgi_7y-mTDxpNwEQ/s1600/tabbar.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc5qE6rSSmiCAPKqerdD8MjcCLaAAARnrQecplT18Q1IdvT9j2FeU4SuZozTIIB6kOpgyxcrlyMhIzUk7KwsC9yletj_r5n7Z2VT7Y9P5HevoGrLAXJoiD8OghF2Kgi_7y-mTDxpNwEQ/s1600/tabbar.png&quot; height=&quot;640&quot; width=&quot;426&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
正解はどうやら、TabbarItemがCustumになっていることから来ているらしい。&lt;br /&gt;
&lt;br /&gt;
しかも修正は飛び先のItemをCustumから他のものにした上でSegueを繋ぎ直すというなんともな仕様。どうにかしてほしいなう。&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/AVvXsEicceCd1p_2mLPHyf2I4M2aSg_q1bMqCGr0ozX0f2IkPbLi5NF03jVLBGeJGj9B0ahfiUmOIHSRZfVWJzgbIuSMqymKij5H6broqWDvlHNrgWbizM9KwR7nWx15fmljE7LJAJFHsZCmqw/s1600/%E6%AD%A3%E8%A7%A3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicceCd1p_2mLPHyf2I4M2aSg_q1bMqCGr0ozX0f2IkPbLi5NF03jVLBGeJGj9B0ahfiUmOIHSRZfVWJzgbIuSMqymKij5H6broqWDvlHNrgWbizM9KwR7nWx15fmljE7LJAJFHsZCmqw/s1600/%E6%AD%A3%E8%A7%A3.png&quot; height=&quot;640&quot; width=&quot;536&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://moba-mac.blogspot.com/feeds/8439676419871988258/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://moba-mac.blogspot.com/2014/04/uitabbarcontrollertabbaritem.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048025544779233799/posts/default/8439676419871988258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048025544779233799/posts/default/8439676419871988258'/><link rel='alternate' type='text/html' href='http://moba-mac.blogspot.com/2014/04/uitabbarcontrollertabbaritem.html' title='UITabbarControllerでTabbarItemが灰色で見えない'/><author><name>mobazo</name><uri>http://www.blogger.com/profile/07701936867534674293</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/AVvXsEhc5qE6rSSmiCAPKqerdD8MjcCLaAAARnrQecplT18Q1IdvT9j2FeU4SuZozTIIB6kOpgyxcrlyMhIzUk7KwsC9yletj_r5n7Z2VT7Y9P5HevoGrLAXJoiD8OghF2Kgi_7y-mTDxpNwEQ/s72-c/tabbar.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5048025544779233799.post-1814218920537259797</id><published>2014-04-20T14:30:00.003+09:00</published><updated>2014-04-20T14:30:52.071+09:00</updated><title type='text'>Wahoo Fitness API</title><content type='html'>Wahoo ハートレートモニターがやって来ました。&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;
APIドキュメントについては、ＸCode5以上ですとWebサイトにある方法ではドキュメントは入れられません。そのためには、WahooからもらえるSDKにある*.docsetを、Finderで「このMac」を選択したあと、右上で「DocSets」と検索してでてくるDocSetsフォルダに入れ込みます。XCode5を再起動し、Window-Documentation and API Referenceを選択するとWahoo APIのリファレンスが見れます（といってもWebサイトと変わりなさそうです）。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wahoo Fitness APIは、&lt;span style=&quot;color: blue;&quot;&gt;WFHardwareConnector&amp;nbsp;&lt;/span&gt;というクラスとして提供されます。&lt;span style=&quot;color: blue;&quot;&gt;WFHardwareConnector&lt;/span&gt;はANT+ とBTLEセンサーの設定やデータ取得が可能です。&lt;br /&gt;
&lt;br /&gt;
− 下準備&lt;br /&gt;
&lt;br /&gt;
❏プロジェクトの設定&lt;br /&gt;
　　プロジェクトのBuild SettingsのLinking セクションにあるOther Linker Flagsで、&lt;b style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;-lstdc++ -all_load&amp;nbsp;&lt;/b&gt;
を設定します。&lt;br /&gt;
&lt;br /&gt;
❏ターゲットの設定&lt;br /&gt;
　　ターゲットのBuild PhasesにあるLink Binary With Librariesで＋ボタンを押下し、Add Other... ボタンを押し、ダウンロードしたWahoo Fiitness APIにあるWFConnector.frameworkを選択する。さらにiOS標準のフレームワークのうち、ExternalAccessory.framework、CoreBluetooth.framework、libstdc++.dylib（iOS7 SDKの場合）を指定する。その際、CoreBluetooth.frameworkはOptionalを指定する。&lt;br /&gt;
&lt;br /&gt;
❏アプリケーションバンドルの設定&lt;br /&gt;
　アクセサリ接続とバックグラウンド動作のため info.plistに次を設定する。&lt;br /&gt;
　　　　&lt;b style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;Supported external accessory protocols&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;　のitemに&lt;/span&gt;&lt;b style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;com.momentumoftechnology.fisica&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
　　　　&lt;b style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;Required background modes　&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;のitemに&lt;/span&gt;&lt;b style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;external-accessory&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;, と&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;bluetooth-central&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;注）&lt;a class=&quot;el&quot; href=&quot;http://api.wahoofitness.com/interface_w_f_hardware_connector.html#a8977093b6bfec17edacb4f725b745684&quot; style=&quot;background-color: white; color: #4665a2; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px; font-weight: bold; text-decoration: none;&quot; title=&quot;Prepares the WFHardwareConnector for background mode.&quot;&gt;prepareForBackground (WFHardwareConnector)&lt;/a&gt;がバックグラウンドモードと転送準備のためにリソースを初期設定する。しかし&lt;a class=&quot;el&quot; href=&quot;http://api.wahoofitness.com/interface_w_f_hardware_connector.html#aa5a9b7ad624375492dd013935089b40c&quot; style=&quot;background-color: white; color: #4665a2; font-family: &#39;Lucida Grande&#39;, Verdana, Geneva, Arial, sans-serif; font-size: 12px; font-weight: bold; text-decoration: none;&quot; title=&quot;Restores normal operation upon returning from background mode.&quot;&gt;returnFromBackground (WFHardwareConnector&lt;/a&gt;と合わせて、iOS5.0以降ではこれらメソッドは不要。バックグラウンド操作では以下が必要。&lt;br /&gt;
&lt;br /&gt;
さらにマニュアルにはありませんが、Wahoo Fitness APIではarm64がサポートされていません。そのため、プロジェクトのBuild SettingsのArchitecuresで、ArchitecuresをStandard(armv7,armv7s,arm64）からothersで、$(〜STANDARDS）とかを削除して、armv7とarmv7Sをそれぞれ＋し（一緒にいれてはいけません）、Build Active Architecure OnlyをたぶんNO（かな？）、Vaild Architecures でarm64を削除します。&lt;br /&gt;
&lt;br /&gt;
これでサンプルとかがコンパイルできるようになります。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://moba-mac.blogspot.com/feeds/1814218920537259797/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://moba-mac.blogspot.com/2014/04/wahoo-fitness-api.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048025544779233799/posts/default/1814218920537259797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048025544779233799/posts/default/1814218920537259797'/><link rel='alternate' type='text/html' href='http://moba-mac.blogspot.com/2014/04/wahoo-fitness-api.html' title='Wahoo Fitness API'/><author><name>mobazo</name><uri>http://www.blogger.com/profile/07701936867534674293</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></feed>