{"id":236,"date":"2015-01-25T12:08:50","date_gmt":"2015-01-25T03:08:50","guid":{"rendered":"https:\/\/sparrow9630.net\/?p=236"},"modified":"2015-01-25T12:08:50","modified_gmt":"2015-01-25T03:08:50","slug":"%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%82%a4%e3%83%a1%e3%83%bc%e3%82%b8%e3%83%93%e3%83%a5%e3%83%bc%e3%82%92%e4%bd%9c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/sparrow9630.net\/?p=236","title":{"rendered":"\u8868\u793a\u3059\u308b\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u3092\u4f5c\u308b"},"content":{"rendered":"<p><span style=\"color:#00FF00\">\/\/\u30ab\u30a8\u30eb\u306e\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u306eframe\uff08\u8868\u793a\u4f4d\u7f6e\u3068\u7e26\u6a2a\u30b5\u30a4\u30ba\uff09\u3092\u6c7a\u3081\u308b<br \/>CGRect rect1 = CGRectMake(90, 50, 100, 100);<br \/>\/\/\u30ab\u30a8\u30eb\u306e\u30a4\u30e1\u30fc\u30b8\u30c7\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u3092\u4f5c\u308b<br \/>UIImageView *frogView = [[UIImageView alloc] initWithFrame:rect1];<\/span><\/p>\n<p>\u753b\u50cf\u306f\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u3067\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u306f<br \/><strong>UIImageView<\/strong>\u306e\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092<strong>alloc<\/strong>\u30af\u30e9\u30b9\u30e1\u30be\u30c3\u30c8\u3067\u4f5c\u308b\u3002<br \/><strong>initWithFrame:<\/strong>\u30e1\u30be\u30c3\u30c8\u3067\u521d\u671f\u5316\u3059\u308b\u3002<\/p>\n<p>\u5f15\u6570\u3067\u6307\u5b9a\u3059\u308b\u5024\u306f\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u306e\u8868\u793a\u9818\u57df\u3092\u6307\u5b9a\u3059\u308b<strong>frame<\/strong>\u306e\u5024\u3002<br \/>frame\u306f\u3001\u9818\u57df\u306e\u5de6\u89d2\u306e\u5ea7\u6a19(x,y)\u3068\u9818\u57df\u306e\u5e45\u3068\u9ad8\u3055\u3092\u6307\u5b9a\u3059\u308b\u3002<br \/>\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u3001<strong>CGRect<\/strong>\u578b\u306e\u5024\u3067\u6307\u5b9a\u3002<br \/><span style=\"color:#0000FF\">CGRectMake(x,y,width,height)<\/span><br \/>\u306e\u95a2\u6570\u3067\u4f5c\u308c\u308b\u3002<\/p>\n<p><span style=\"color:#00FF00\">\/\/\u30ab\u30a8\u30eb\u306e\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u306e\u8868\u793a\u30e2\u30fc\u30c9\u306e\u8a2d\u5b9a<br \/>frogView.contentMode = UIViewContentModeScaleAspectFill;<\/span><\/p>\n<p>\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u306e\u30b5\u30a4\u30ba\u3068\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u304c\u5fc5\u305a\u540c\u3058\u3068\u306f\u9650\u3089\u306a\u3044\u306e\u3067\u3001\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u306e\u4e2d\u3067\u3069\u306e\u3088\u3046\u306b\u753b\u50cf\u3092\u8868\u793a\u3059\u308b\u304b\u3092\u3001<br \/><span style=\"color:#0000FF\">contentMode<\/span>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<p><span style=\"font-size:large;\"><strong>contentMode\u306e\u7a2e\u985e<\/strong><\/span><\/p>\n<p><strong>UIViewContentModeScaleToFill<\/strong><br \/>\u753b\u50cf\u3092\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u306e\u30b5\u30a4\u30ba\u3068\u540c\u3058\u306b\u3059\u308b<\/p>\n<p><strong>UIViewContentModeScaleAspectFit<br \/><\/strong>\u753b\u50cf\u5168\u4f53\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u7e26\u6a2a\u6bd4\u7387\u3092\u4fdd\u3063\u305f\u307e\u307e\u753b\u50cf\u3092\u4f38\u7e2e\u3059\u308b<\/p>\n<p><strong>UIViewContentModeScaleAspectFill<\/strong><br \/>\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u3092\u6e80\u305f\u3059\u3088\u3046\u306b\u7e26\u6a2a\u6bd4\u7387\u3092\u4fdd\u3063\u305f\u307e\u307e\u753b\u50cf\u3092\u4f38\u7e2e\u3059\u308b<\/p>\n<p><strong>UIViewContentModeCenter<\/strong><br \/>\u4e2d\u592e\u63c3\u3048\u3067\u8868\u793a\u3059\u308b<\/p>\n<p><strong>UIViewContentModeTop<\/strong><br \/>\u4e0a\u8fba\u63c3\u3048\u3067\u8868\u793a\u3059\u308b<\/p>\n<p><strong>UIViewContentModeBottom<\/strong><br \/>\u4e0b\u8fba\u63c3\u3048\u3067\u8868\u793a\u3059\u308b<\/p>\n<p><strong>UIViewContentModeLeft<\/strong><br \/>\u5de6\u8fba\u63c3\u3048\u3067\u8868\u793a\u3059\u308b<\/p>\n<p><strong>UIViewContentModeRight<\/strong><br \/>\u53f3\u8fba\u63c3\u3048\u3067\u8868\u793a\u3059\u308b<\/p>\n<p><strong>UIViewContentModeTopLeft<br \/><\/strong>\u5de6\u4e0a\u63c3\u3048\u3067\u8868\u793a\u3059\u308b<\/p>\n<p><strong>UIViewContentModeTopRight<\/strong><br \/>\u53f3\u4e0a\u63c3\u3048\u3067\u8868\u793a\u3059\u308b<\/p>\n<p><strong>UIViewContentModeBottomLeft<br \/><\/strong>\u5de6\u4e0b\u63c3\u3048\u3067\u8868\u793a\u3059\u308b<\/p>\n<p><strong>UIViewContentModeBottomRight<br \/><\/strong>\u53f3\u4e0b\u63c3\u3048\u3067\u8868\u793a\u3059\u308b<\/p>\n","protected":false},"excerpt":{"rendered":"<p><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":["post-236","post","type-post","status-publish","format-standard","hentry","category-iosact1"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":237,"url":"https:\/\/sparrow9630.net\/?p=237","url_meta":{"origin":236,"position":0},"title":"\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u306b\u753b\u50cf\u306e\u30a4\u30e1\u30fc\u30b8\u30c7\u30fc\u30bf\u3092\u4f5c\u308b","author":"sparrow9630","date":"2015-01-25","format":false,"excerpt":"","rel":"","context":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","block_context":{"text":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","link":"https:\/\/sparrow9630.net\/?cat=9"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":238,"url":"https:\/\/sparrow9630.net\/?p=238","url_meta":{"origin":236,"position":1},"title":"\u753b\u9762\u306b\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u3092\u8ffd\u52a0\u3059\u308b","author":"sparrow9630","date":"2015-01-25","format":false,"excerpt":"","rel":"","context":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","block_context":{"text":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","link":"https:\/\/sparrow9630.net\/?cat=9"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":208,"url":"https:\/\/sparrow9630.net\/?p=208","url_meta":{"origin":236,"position":2},"title":"\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u3067\u306e\u30b3\u30de\u9001\u308a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3","author":"sparrow9630","date":"2014-12-29","format":false,"excerpt":"","rel":"","context":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","block_context":{"text":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","link":"https:\/\/sparrow9630.net\/?cat=9"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":239,"url":"https:\/\/sparrow9630.net\/?p=239","url_meta":{"origin":236,"position":3},"title":"\u30a4\u30e1\u30fc\u30b8\u30d3\u30e5\u30fc\u3092\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30d3\u30eb\u30c0\u30fc\u3067\u4f5c\u308b","author":"sparrow9630","date":"2015-01-25","format":false,"excerpt":"","rel":"","context":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","block_context":{"text":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","link":"https:\/\/sparrow9630.net\/?cat=9"},"img":{"alt_text":"imebyu.png","src":"https:\/\/i0.wp.com\/blog-imgs-76.fc2.com\/s\/p\/a\/sparrow9630\/imebyu.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":240,"url":"https:\/\/sparrow9630.net\/?p=240","url_meta":{"origin":236,"position":4},"title":"\u30d3\u30e5\u30fc\u306e\u5ea7\u6a19\u3084\u9818\u57df\u3092\u793a\u3059\u30d7\u30ed\u30d1\u30c6\u30a3","author":"sparrow9630","date":"2015-01-25","format":false,"excerpt":"","rel":"","context":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","block_context":{"text":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","link":"https:\/\/sparrow9630.net\/?cat=9"},"img":{"alt_text":"z001.gif","src":"https:\/\/i0.wp.com\/blog-imgs-76.fc2.com\/s\/p\/a\/sparrow9630\/z001.gif?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog-imgs-76.fc2.com\/s\/p\/a\/sparrow9630\/z001.gif?resize=350%2C200 1x, https:\/\/i0.wp.com\/blog-imgs-76.fc2.com\/s\/p\/a\/sparrow9630\/z001.gif?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/blog-imgs-76.fc2.com\/s\/p\/a\/sparrow9630\/z001.gif?resize=700%2C400 2x"},"classes":[]},{"id":209,"url":"https:\/\/sparrow9630.net\/?p=209","url_meta":{"origin":236,"position":5},"title":"\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u518d\u751f\u3068\u505c\u6b62","author":"sparrow9630","date":"2014-12-29","format":false,"excerpt":"","rel":"","context":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","block_context":{"text":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","link":"https:\/\/sparrow9630.net\/?cat=9"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/posts\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=236"}],"version-history":[{"count":0,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/posts\/236\/revisions"}],"wp:attachment":[{"href":"https:\/\/sparrow9630.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}