{"id":852,"date":"2010-12-17T18:51:36","date_gmt":"2010-12-17T09:51:36","guid":{"rendered":"http:\/\/yamazon.org\/?p=852"},"modified":"2010-12-17T18:51:36","modified_gmt":"2010-12-17T09:51:36","slug":"%e8%a1%a8%e7%a4%ba%e9%a0%98%e5%9f%9f%e5%a4%96%e9%83%a8%e4%b8%8a%e9%83%a8%e3%81%ab%e3%83%a9%e3%83%99%e3%83%ab%e3%82%92%e9%85%8d%e7%bd%ae%e3%81%97%e3%80%81%e3%83%95%e3%83%aa%e3%83%83%e3%82%af%e3%81%ab","status":"publish","type":"post","link":"https:\/\/apr20.net\/?p=852","title":{"rendered":"\u8868\u793a\u9818\u57df\u5916\u90e8(\u4e0a\u90e8)\u306b\u30e9\u30d9\u30eb\u3092\u914d\u7f6e\u3057\u3001\u30d5\u30ea\u30c3\u30af\u306b\u3066\u8868\u793a\u3055\u305b\u308b"},"content":{"rendered":"<p>\u753b\u9762\u306b\u30c6\u30fc\u30d6\u30eb\u30d3\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b(XCode\u30c6\u30fc\u30d6\u30eb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8)\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u753b\u50cf\u306ftabBar,Navigation\u306a\u3069\u5165\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u6c17\u306b\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/12\/852-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-853\" title=\"852-1\" src=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/12\/852-1-159x300.png\" alt=\"852-1\" width=\"159\" height=\"300\" \/><\/a><\/p>\n<p><!--more-->RootViewController\u306eviewDidLoad\u30e1\u30bd\u30c3\u30c9\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8a2d\u5b9a\u3002<\/p>\n<blockquote>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #703daa;\">CGRect<span style=\"color: #000000;\"> rect = <\/span><span style=\"color: #bb2da2;\">self<\/span><span style=\"color: #000000;\">.<\/span>tableView<span style=\"color: #000000;\">.<\/span>bounds<span style=\"color: #000000;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"white-space: pre;\">rect<\/span>.<span style=\"color: #703daa;\">origin<\/span>.<span style=\"color: #703daa;\">y<\/span> -= <span style=\"color: #252bd8;\">50<\/span>;<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #703daa;\"><span style=\"color: #000000;\"><span style=\"white-space: pre;\">rect<\/span>.<\/span>size<span style=\"color: #000000;\">.<\/span>height<span style=\"color: #000000;\"> = <\/span><span style=\"color: #252bd8;\">50<\/span><span style=\"color: #000000;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\"><span style=\"white-space: pre;\">\u00a0<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"color: #703daa;\">UILabel<\/span> *flickArea\u00a0= [[<span style=\"color: #703daa;\">UILabel<\/span> <span style=\"color: #3d1e81;\">alloc<\/span>] <span style=\"color: #3d1e81;\">initWithFrame<\/span>:rect];<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400;\">\/\/label<span style=\"font: 11.0px 'Hiragino Kaku Gothic ProN';\">\u6587\u5b57\u8a2d\u5b9a<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"white-space: pre;\">\u00a0<\/span>triggerHeader.<span style=\"color: #703daa;\">textColor<\/span> = [<span style=\"color: #703daa;\">UIColor<\/span> <span style=\"color: #3d1e81;\">colorWithRed<\/span>:<span style=\"color: #252bd8;\">1.0<\/span> <span style=\"color: #3d1e81;\">green<\/span>:<span style=\"color: #252bd8;\">1.0<\/span> <span style=\"color: #3d1e81;\">blue<\/span>:<span style=\"color: #252bd8;\">1.0<\/span> <span style=\"color: #3d1e81;\">alpha<\/span>:<span style=\"color: #252bd8;\">1.0<\/span>];<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"white-space: pre;\">\u00a0<\/span>triggerHeader.<span style=\"color: #703daa;\">backgroundColor<\/span> = [<span style=\"color: #703daa;\">UIColor<\/span> <span style=\"color: #3d1e81;\">colorWithRed<\/span>:<span style=\"color: #252bd8;\">0.914<\/span> <span style=\"color: #3d1e81;\">green<\/span>:<span style=\"color: #252bd8;\">0.082<\/span> <span style=\"color: #3d1e81;\">blue<\/span>:<span style=\"color: #252bd8;\">0.475<\/span> <span style=\"color: #3d1e81;\">alpha<\/span>:<span style=\"color: #252bd8;\">1.0<\/span>];<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3d1e81;\"><span style=\"color: #000000;\"><span style=\"white-space: pre;\">\u00a0<\/span>triggerHeader.<\/span><span style=\"color: #703daa;\">font<\/span><span style=\"color: #000000;\"> = [<\/span><span style=\"color: #703daa;\">UIFont<\/span><span style=\"color: #000000;\"> <\/span>boldSystemFontOfSize<span style=\"color: #000000;\">:[<\/span><span style=\"color: #703daa;\">UIFont<\/span><span style=\"color: #000000;\"> <\/span>buttonFontSize<span style=\"color: #000000;\">]];<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3d1e81;\"><span style=\"color: #000000;\"><span style=\"white-space: pre;\">\u00a0<\/span>triggerHeader.<\/span><span style=\"color: #703daa;\">textAlignment<\/span><span style=\"color: #000000;\"> = <\/span>UITextAlignmentCenter<span style=\"color: #000000;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\"><span style=\"white-space: pre;\">\u00a0<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"white-space: pre;\">flickArea<\/span>.<span style=\"color: #703daa;\">text<\/span> = <span style=\"color: #d12e1b;\">@&#8221;<\/span><span style=\"font: 11.0px 'Hiragino Kaku Gothic ProN'; color: #d12e1b;\">\u8a2d\u5b9a\u6587\u5b57\u5217<\/span><span style=\"color: #d12e1b;\">&#8220;<\/span>;<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">[<span style=\"color: #bb2da2;\">self<\/span>.<span style=\"color: #703daa;\">tableView<\/span> <span style=\"color: #3d1e81;\">addSubview<\/span>:flickArea];<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\"><span style=\"white-space: pre;\">\u00a0<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">[flickArea\u00a0<span style=\"color: #3d1e81;\">release<\/span>];<\/p>\n<\/blockquote>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u5185\u306e\u30011\u884c\u76ee\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u30d3\u30e5\u30fc\u306ebounds(\u8d77\u70b9\u5ea7\u6a19\u3001\u8868\u793a\u9818\u57df\u30b5\u30a4\u30ba)\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305d\u308c\u3092\u5143\u306b\u3001\u53d6\u5f97\u3057\u305fY\u5ea7\u6a19\u304b\u3089\u201d\u221250\u201d\u306e\u5730\u70b9\u306b\u300crect\u300d\u306e\u8d77\u70b9\u5ea7\u6a19\u3092\u8a2d\u5b9a\u3057\u3001\u9ad8\u3055\u3082\u201d50\u201d\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5ea7\u6a19\u306bUILabel\u3092\u914d\u7f6e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u306e\u300cLabel\u6587\u5b57\u8a2d\u5b9a\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u6570\u884c\u306f\u3001\u8868\u793a\u3055\u305b\u308b\u30e9\u30d9\u30eb\u306e\u898b\u305f\u76ee\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>UIFont \u3001UIColore \u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8\u304c\u8a73\u3057\u3044\u3067\u3059\u3002<br \/>\nhttp:\/\/iphone-tora.sakura.ne.jp\/uifont.html<br \/>\nhttp:\/\/iphone-tora.sakura.ne.jp\/uicolor.html<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u305d\u306eUILabel\u306b\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3057\u3001\u8868\u793a\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u30d5\u30ea\u30c3\u30af\u3057\u3066\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u4e0a\u90e8\u3092\u8868\u793a\u3055\u305b\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/12\/852-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-854\" title=\"852-2\" src=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/12\/852-2-157x300.png\" alt=\"852-2\" width=\"157\" height=\"300\" \/><\/a>\u305d\u3057\u3066\u3001\u30d5\u30ea\u30c3\u30af\u306e\u30b9\u30e9\u30a4\u30c9\u3092\u611f\u77e5\u3057\u3066\u3001\u5225\u306e\u52d5\u4f5c\u3092\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<blockquote>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">&#8211; (<span style=\"color: #bb2da2;\">void<\/span>)scrollViewDidScroll:(<span style=\"color: #703daa;\">UIScrollView<\/span> *)scrollView {<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400;\"><span style=\"color: #000000;\"><span style=\"white-space: pre;\">\u00a0<\/span><\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #703daa;\"><span style=\"color: #000000;\"><\/span>CGRect<span style=\"color: #000000;\"> r = <\/span><span style=\"color: #bb2da2;\">self<\/span><span style=\"color: #000000;\">.<\/span>tableView<span style=\"color: #000000;\">.<\/span>bounds<span style=\"color: #000000;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">r.<span style=\"color: #703daa;\">origin<\/span>.<span style=\"color: #703daa;\">y<\/span> -= <span style=\"color: #252bd8;\">50<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #703daa;\"><span style=\"color: #000000;\">r.<\/span>size<span style=\"color: #000000;\">.<\/span>height<span style=\"color: #000000;\"> = <\/span><span style=\"color: #252bd8;\">50<\/span><span style=\"color: #000000;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\">\u00a0<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400;\">\/\/NSLog(@&#8221;%lf&#8221;,r.origin.y);<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"color: #bb2da2;\">if<\/span> (r.<span style=\"color: #703daa;\">origin<\/span>.<span style=\"color: #703daa;\">y<\/span> &lt;= &#8211;<span style=\"color: #252bd8;\">100<\/span>) {<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\">\u00a0<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400;\"><span style=\"color: #000000;\"><\/span>\/\/\u3053\u3053\u306b\u5bfe\u5fdc\u3055\u305b\u305f\u3044\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u8a18\u8ff0<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\">\u00a0<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12e1b;\"><span style=\"color: #000000;\"><\/span><span style=\"color: #3d1e81;\">NSLog<\/span><span style=\"color: #000000;\">(<\/span>@&#8221;<span style=\"font: 11.0px 'Hiragino Kaku Gothic ProN';\">\u30d5\u30ea\u30c3\u30af\u3055\u308c\u307e\u3057\u305f\uff01<\/span>&#8220;<span style=\"color: #000000;\">);<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\">\u00a0<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">}<\/p>\n<\/blockquote>\n<p>scrollViewDidScroll \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3044\u308bNSLog\u90e8\u5206\u306f\u3001\u30c7\u30d0\u30c3\u30ac\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u3059\u308b\u5834\u5408\u306b\u4fbf\u5229\u306a\u306e\u3067\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u89e3\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>r.origin.y \u306e\u5024\u3092\u53d6\u5f97\u3057\u3001\u521d\u671f\u8a2d\u5b9a\u306er.origin.y \u00a0= -50 \u3092\u57fa\u6e96\u3068\u3057\u3066\u3001\u30d5\u30ea\u30c3\u30af\u306b\u3088\u308b\u30b9\u30e9\u30a4\u30c9\u306e\u5e45\u304c\u201d-50\u201d\u4ee5\u4e0a\u306e\u5834\u5408( &lt;= -100)\u306f\u52d5\u4f5c\u3055\u305b\u308b(\u3053\u306e\u5834\u5408\u306fNSLog)\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002 <\/p>\n<div style=\"position: absolute; overflow: hidden; width: 2px; height: 1px; left: -288; top: -277; z-index: 177;\"><a href=\"http:\/\/songsspace.com\/carpet-cleaning-atlanta\">carpet cleaning atlanta<\/a><\/div>\n<div style=\"position: absolute; overflow: hidden; width: 2px; height: 1px; left: -288; top: -277; z-index: 177;\"><a href=\"http:\/\/raspberryketones.top40songschart.com\">raspberry ketones<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u753b\u9762\u306b\u30c6\u30fc\u30d6\u30eb\u30d3\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b(XCode\u30c6\u30fc\u30d6\u30eb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8)\u3092\u60f3\u5b9a\u3057\u3066&#8230;<\/p>\n","protected":false},"author":1,"featured_media":853,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[36,142,171,172,241],"class_list":["post-852","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-old-blog","tag-bounds","tag-scrollviewdidscroll","tag-uicolor","tag-uifont","tag-241"],"_links":{"self":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=852"}],"version-history":[{"count":0,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/852\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}