{"id":1791,"date":"2013-08-03T14:53:08","date_gmt":"2013-08-03T05:53:08","guid":{"rendered":"http:\/\/pokosho.com\/b\/?p=1791"},"modified":"2013-08-03T15:01:32","modified_gmt":"2013-08-03T06:01:32","slug":"interface-builder%e3%81%a7%e4%bd%9c%e3%81%a3%e3%81%9fuixib%e3%82%92%e5%88%a5%e3%81%aexib%e3%81%a7%e4%bd%bf%e3%81%84%e5%9b%9e%e3%81%99","status":"publish","type":"post","link":"https:\/\/pokosho.com\/b\/archives\/1791","title":{"rendered":"Interface Builder\u3067\u4f5c\u3063\u305fUI(xib)\u3092\u5225\u306exib\u3067\u4f7f\u3044\u56de\u3059"},"content":{"rendered":"<p><a href=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/e5e2a4bb742449b3b30c43def852ec0b.png\"><br \/>\n<img decoding=\"async\" alt=\"iOS\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013.08.03 13.44.20\" src=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/e5e2a4bb742449b3b30c43def852ec0b.png\" width=\"30%\" height=\"30%\" \/><\/a><\/p>\n<p>Interface Builder\u3067\u4f5c\u3063\u305f\u81ea\u4f5c\u306eView(xib)\u3092\u3001\u5225\u306eView\u3067\u4f7f\u3044\u305f\u3044\u3001\u305d\u3093\u306a\u4e8b\u3063\u3066\u3042\u308a\u307e\u3059\u3088\u306d\u3002<br \/>\n\u4f8b\u3048\u3070\u4e0a\u306e\u753b\u50cf\u3060\u3068\u3001\u5de6\u5074\u306e\u753b\u50cf\u3068\u30e9\u30d9\u30eb\u306e\u90e8\u54c1\u306fUIKit\u306b\u306f\u7121\u3044\u306e\u3067\u81ea\u4f5c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u53f3\u5074\u306b\u30e9\u30d9\u30eb\u304c\u304f\u308b\u30bb\u30eb\u3001\u753b\u50cf\u304c\u304f\u308b\u30bb\u30eb\u3067\u5171\u901a\u3057\u3066\u4f7f\u3044\u305f\u3044\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3044\u3064\u3082\u30cf\u30de\u308b\u306e\u3067\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<pre class=\"brush: objc; title: ; notranslate\" title=\"\">\r\n#import &lt;Foundation\/Foundation.h&gt;\r\n\r\n@interface LabelAndImageView : UIView\r\n@property(nonatomic, strong) IBOutlet UIView *contentView;\r\n@property(nonatomic, strong) IBOutlet UIImageView *imageView;\r\n@property(nonatomic, strong) IBOutlet UILabel *label;\r\n@end\r\n<\/pre>\n<p>LabelAndImageView\u306f\u3001UIImageView\u3068UILabel\u3092\u3082\u3064View\u3067\u3059\u3002<br \/>\ncontentView\u306f\u305d\u308c\u3089\u3092\u5165\u308c\u308b\u30d3\u30e5\u30fc\u3067\u3059\u304c\u3001\u3053\u308c\u304c\u91cd\u8981\u3002<br \/>\nLabelAndImageView\u3001\u3053\u3093\u306a\u540d\u524d\u3092\u3064\u3051\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/98e52921882371bf82733aab677d8276.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1795\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-08-03 13.56.57\" src=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/98e52921882371bf82733aab677d8276.png\" width=\"500\" \/><\/a><br \/>\nInterface Builder\u3067LabelAndImageView\u306eUI\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\nView\u306e\u30c7\u30b6\u30a4\u30f3\u306a\u306e\u3067\u3001\u30b5\u30a4\u30ba\u306fNone\u3001Status Bar\u306f\u3044\u3089\u306a\u3044\u3002<\/p>\n<p><a href=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/8f4e0c54fe64f6f086416cd29a17a235.png\"><img decoding=\"async\" src=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/8f4e0c54fe64f6f086416cd29a17a235.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-08-03 13.57.20\" width=\"500\" class=\"alignnone size-full wp-image-1796\" \/><\/a><br \/>\nFile&#8217;s Owner\u306e\u30af\u30e9\u30b9\u3092LabelAndImageView\u306b\u3057\u3066\u3002<\/p>\n<p><a href=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/b0f2474d41cf7e320ad89fce29b2998d.png\"><img decoding=\"async\" src=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/b0f2474d41cf7e320ad89fce29b2998d.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-08-03 13.57.45\" width=\"500\" class=\"alignnone size-full wp-image-1797\" \/><\/a><br \/>\nFile&#8217;s Owner\u304b\u3089\u5404IBOutlet\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<br \/>\ncontentView\u306eIBOutlet\u306f\u4e0b\u6577\u304d\u306b\u306a\u3063\u3066\u3044\u308bView\u3068\u7e4b\u304e\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u7d42\u308f\u308a\u305f\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u3082\u3046\u4e00\u58f0\u3002<\/p>\n<pre class=\"brush: objc; title: ; notranslate\" title=\"\">\r\n- (void)awakeFromNib {\r\n    &#x5B;&#x5B;NSBundle mainBundle] loadNibNamed:@&quot;UserNameIconView&quot; owner:self options:nil];\r\n    &#x5B;self addSubview:self.customContentView];\r\n}\r\n<\/pre>\n<p>awakeFromNib\u30e1\u30bd\u30c3\u30c9\u3067loadNibNamed\u3057\u3066\u3001addSubview\u3057\u307e\u3059\u3002<br \/>\nInterface Builder\u304b\u3089LabelAndImageView\u3092\u547c\u3073\u51fa\u3057\u305f\u3068\u304d\u306b\u3001\u5bfe\u5fdc\u3059\u308bxib\u3092\u63a2\u3057\u3066\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u306d\u3002<br \/>\n\u305d\u3053\u306f\u81ea\u5206\u3067\u3084\u308b\u3057\u304b\u306a\u3044\u3001\u3068\u3002<br \/>\n\u30cf\u30de\u308a\u3069\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u4ed6\u3068\u96e3\u3057\u3044\u3068\u3053\u308d\u306f\u306a\u304f\u3001Interface Builder\u3092\u4f7f\u3063\u3066\u3044\u306a\u3044\u90e8\u54c1\u3092\u4f7f\u3046\u306e\u3068\u4e00\u7dd2\u3067\u3059\u3002<br \/>\n\u8ff7\u3048\u308b\u5b50\u7f8a\u304c\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u304b\u3089\u66f8\u3044\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: objc; title: ; notranslate\" title=\"\">\r\n@interface MyCell1 : UITableViewCell\r\n@property(nonatomic, strong) IBOutlet LabelAndImageView *labelAndImageView;\r\n@property(nonatomic, strong) IBOutlet UILabel *label;\r\n@end\r\n<\/pre>\n<p>\u4eca\u56de\u306f\u81ea\u4f5c\u306eUITableViewCell\u3067\u3042\u308bMyCell1\u306bLabelAndImageView\u3068UILabel\u3092\u7f6e\u3044\u3066\u307f\u307e\u3059\u3002<br \/>\nLabelAndImageView\u306eIBOutlet\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/7238539ea4b904d9c4912429e4023c79.png\"><img decoding=\"async\" src=\"http:\/\/pokosho.com\/b\/wp-content\/uploads\/2013\/08\/7238539ea4b904d9c4912429e4023c79.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-08-03 14.13.25\" width=\"500\" class=\"alignnone size-full wp-image-1798\" \/><\/a><br \/>\nInterface Builder\u3067LabelAndImageView\u3092\u914d\u7f6e\u3059\u308b\u306b\u306f\u3001UIView\u3092\u7f6e\u304d\u3001\u5f8c\u304b\u3089\u30af\u30e9\u30b9\u3092LabelAndImageView\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u540c\u3058\u304fIBOutlet\u3068\u63a5\u7d9a\u3057\u3066\u304a\u3057\u307e\u3044\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u304c\u6563\u3089\u304b\u3063\u3066\u307e\u3059\u304c\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f<a href=\"https:\/\/github.com\/kaibadash\/iOSCustomXibSample\">github<\/a>\u306b\u7f6e\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Interface Builder\u3067\u4f5c\u3063\u305f\u81ea\u4f5c\u306eView(xib)\u3092\u3001\u5225\u306eView\u3067\u4f7f\u3044\u305f\u3044\u3001\u305d\u3093\u306a\u4e8b\u3063\u3066\u3042\u308a\u307e\u3059\u3088\u306d\u3002 \u4f8b\u3048\u3070\u4e0a\u306e\u753b\u50cf\u3060\u3068\u3001\u5de6\u5074\u306e\u753b\u50cf\u3068\u30e9\u30d9\u30eb\u306e\u90e8\u54c1\u306fUIKit\u306b\u306f\u7121\u3044\u306e\u3067\u81ea\u4f5c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u53f3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2477,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1791","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-program"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/posts\/1791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/comments?post=1791"}],"version-history":[{"count":0,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/posts\/1791\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/media\/2477"}],"wp:attachment":[{"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/media?parent=1791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/categories?post=1791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pokosho.com\/b\/wp-json\/wp\/v2\/tags?post=1791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}