{"id":1040,"date":"2010-03-02T22:40:50","date_gmt":"2010-03-02T13:40:50","guid":{"rendered":"http:\/\/picxpic.com\/?p=1040"},"modified":"2010-03-02T22:40:50","modified_gmt":"2010-03-02T13:40:50","slug":"iphone%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e5%9f%ba%e6%9c%ac%e3%81%8b%e3%82%89%e3%81%ae%e3%81%8a%e3%81%95%e3%82%89%e3%81%84-%e3%81%9d%e3%81%ae%ef%bc%91%e3%80%8chello-world%e3%80%8d","status":"publish","type":"post","link":"https:\/\/picxpic.com\/?p=1040","title":{"rendered":"iPhone\u30d7\u30ed\u30b0\u30e9\u30e0\u57fa\u672c\u304b\u3089\u306e\u304a\u3055\u3089\u3044 \u305d\u306e\uff11\u300cHello! World!\u300d"},"content":{"rendered":"<p>iPhone\u30a2\u30d7\u30ea\u3068iPad\u30a2\u30d7\u30ea\u309210\u672c\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u5f8c\u3067\u306a\u3093\u3067\u3059\u304c\u3001\u672a\u3060\u306b\u3042\u307e\u308aiPhone\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u7406\u89e3\u3057\u305f\u3068\u306f\u3044\u3044\u304c\u305f\u3044\u72b6\u614b\u306e\u79c1\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u306f\u30a4\u30ab\u30f3\uff01\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3061\u3087\u3044\u3061\u3087\u3044\u4f5c\u308b\u3053\u3068\u3067\u3001<br \/>\n\u57fa\u672c\u7684\u306a\u3053\u3068\u304b\u3089\u304a\u3055\u3089\u3044\u3092\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u7b2c1\u5f3e\u3068\u3057\u3066\u306f\u3001\u3084\u306f\u308a\u300cHello! World!\u300d\u4ee5\u5916\u306b\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>Hello_WorldAppDelegate.h<\/p>\n<p>[c]<br \/>\n\/*<br \/>\n\t\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8d77\u52d5\u6642\u3068\u7d42\u4e86\u6642\u306b\u5b9f\u884c\u3055\u308c\u308b\u30af\u30e9\u30b9\u3060\u3088<br \/>\n*\/<\/p>\n<p>\/\/ \u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u8aad\u307f\u8fbc\u307f<br \/>\n#import &lt;UIKit\/UIKit.h&gt;<\/p>\n<p>\/\/ \u4ed6\u306e\u5834\u6240\u306b\u3042\u308b\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001\u30af\u30e9\u30b9\u3068\u3057\u3066\u5ba3\u8a00<br \/>\n@class Hello_WorldViewController;<\/p>\n<p>\/\/ Hello_WorldAppDelegate\u30af\u30e9\u30b9\u306e\u5ba3\u8a00<br \/>\n@interface Hello_WorldAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {<\/p>\n<p>\t\/*<br \/>\n\t\t&lt;UIApplicationDelegate&gt;\u306f\u30d7\u30ed\u30b3\u30c8\u30eb\u3068\u3044\u3066\u8aad\u307f\u3053\u3093\u3067\u3044\u308b\u3002<br \/>\n\t\t\u30d7\u30ed\u30b3\u30c8\u30eb\u3068\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u306e\u5ba3\u8a00\u3060\u3051\u306e\u7d99\u627f\u306e\u3053\u3068\u3002<br \/>\n\t\t\u3064\u307e\u308a\u3001\u5b9f\u88c5\u306f\u81ea\u5206\u3067\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\t*\/<\/p>\n<p>\t\/\/ \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u5ba3\u8a00<br \/>\n\t\/\/ \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u306e\u578b\u304c\u30af\u30e9\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u578b\uff08\u7d2b\u8272\uff09\u306e\u5834\u5408\u3001<br \/>\n\t\/\/ \u5ba3\u8a00\u3067\u5909\u6570\u540d\u306e\u30a2\u30bf\u30de\u306b*\u3092\u3064\u3051\u308b\u3002<br \/>\n    UIWindow *window;<br \/>\n    Hello_WorldViewController *viewController;<br \/>\n\tint pokemon;<br \/>\n}<\/p>\n<p>\/\/ \u30a2\u30af\u30bb\u30c3\u30b5\u30fc<br \/>\n@property (nonatomic, retain) IBOutlet UIWindow *window;<br \/>\n@property (nonatomic, retain) IBOutlet Hello_WorldViewController *viewController;<\/p>\n<p>@end<br \/>\n[\/c]<\/p>\n<p>Hello_WorldAppDelegate.m<br \/>\n[c]<br \/>\n\/\/ \u81ea\u5206\u306e\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f<br \/>\n\/\/ \u307e\u305f\u3001\u30d8\u30c3\u30c0\u30fc\u3067\u5ba3\u8a00\u3057\u305f\u30af\u30e9\u30b9\u306e\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3082\u8aad\u307f\u8fbc\u307f<br \/>\n#import &quot;Hello_WorldAppDelegate.h&quot;<br \/>\n#import &quot;Hello_WorldViewController.h&quot;<\/p>\n<p>@implementation Hello_WorldAppDelegate<\/p>\n<p>\/\/ \u30a2\u30af\u30bb\u30c3\u30b5\u30fc<br \/>\n@synthesize window;<br \/>\n@synthesize viewController;<\/p>\n<p>#pragma mark &#8211;<br \/>\n#pragma mark Application lifecycle<\/p>\n<p>\/\/ \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u8d77\u52d5\u3057\u305f\u3089\u5b9f\u884c<br \/>\n&#8211; (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    <\/p>\n<p>    \/\/ Override point for customization after application launch.<\/p>\n<p>    \/\/ Add the view controller&#8217;s view to the window and display.<br \/>\n\t\/\/ \u30d8\u30c3\u30c0\u30fc\u3067\u6307\u5b9a\u3057\u305fHello_WorldViewController\u578b\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u3092\u30b5\u30d6\u30d3\u30e5\u30fc\u3068\u3057\u3066\u6307\u5b9a<br \/>\n    [self.window addSubview:viewController.view];<\/p>\n<p>\t\/\/ \u30b5\u30d6\u30d3\u30e5\u30fc\u3092\u53ef\u8996\u5316\u3059\u308b<br \/>\n    [self.window makeKeyAndVisible];<\/p>\n<p>    return YES;<br \/>\n}<\/p>\n<p>\/\/ \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30a2\u30af\u30c6\u30a3\u30d6\u3067\u306a\u304f\u306a\u308b\u76f4\u524d\u306b\u5b9f\u884c 1<br \/>\n&#8211; (void)applicationWillResignActive:(UIApplication *)application {<br \/>\n}<\/p>\n<p>\/\/ \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30a2\u30af\u30c6\u30a3\u30d6\u3067\u306a\u304f\u306a\u308b\u76f4\u524d\u306b\u5b9f\u884c 2<br \/>\n&#8211; (void)applicationDidEnterBackground:(UIApplication *)application {<br \/>\n}<\/p>\n<p>\/\/ \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5fa9\u5e30\u3057\u305f\u76f4\u5f8c 1<br \/>\n&#8211; (void)applicationWillEnterForeground:(UIApplication *)application {<br \/>\n}<\/p>\n<p>\/\/ \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5fa9\u5e30\u3057\u305f\u76f4\u5f8c 2<br \/>\n&#8211; (void)applicationDidBecomeActive:(UIApplication *)application {<br \/>\n}<\/p>\n<p>\/\/ \u306a\u3093\u3058\u3083\u3053\u308a\u3083<br \/>\n&#8211; (void)applicationWillTerminate:(UIApplication *)application {<br \/>\n}<\/p>\n<p>#pragma mark &#8211;<br \/>\n#pragma mark Memory management<\/p>\n<p>&#8211; (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {<br \/>\n}<\/p>\n<p>\/\/ \u30e1\u30e2\u30ea\u89e3\u653e<br \/>\n&#8211; (void)dealloc {<br \/>\n    [viewController release];<br \/>\n    [window release];<br \/>\n    [super dealloc];<br \/>\n}<\/p>\n<p>@end<br \/>\n[\/c]<\/p>\n<p>Hello_WorldViewController.h<br \/>\n[c]<br \/>\n\/\/ \u30e1\u30a4\u30f3\u306e\u30d3\u30e5\u30fc\u30af\u30e9\u30b9<\/p>\n<p>\/\/ \u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u8aad\u307f\u8fbc\u307f<br \/>\n#import &lt;UIKit\/UIKit.h&gt;<\/p>\n<p>\/\/ UIViewController\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u305f\u30d3\u30e5\u30fc\u30af\u30e9\u30b9<br \/>\n@interface Hello_WorldViewController : UIViewController {<\/p>\n<p>\t\/\/ \u30a2\u30a6\u30c8\u30ec\u30c3\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570<br \/>\n\tIBOutlet UILabel *hello;<br \/>\n}<\/p>\n<p>\/\/ \u30d7\u30ed\u30d1\u30c6\u30a3<br \/>\n@property (nonatomic,retain) IBOutlet UILabel *hello;<\/p>\n<p>\/\/ \u30a2\u30af\u30b7\u30e7\u30f3<br \/>\n&#8211; (IBAction) onHello;<br \/>\n&#8211; (IBAction) offHello;<br \/>\n&#8211; (IBAction) iyan;<\/p>\n<p>@end<br \/>\n[\/c]<\/p>\n<p>Hello_WorldViewController.m<br \/>\n[c]<br \/>\n#import &quot;Hello_WorldViewController.h&quot;<\/p>\n<p>@implementation Hello_WorldViewController;<\/p>\n<p>@synthesize hello;<\/p>\n<p>&#8211; (void) onHello {<br \/>\n\tself.hello.text = @&quot;Hello! World!&quot;;<br \/>\n}<\/p>\n<p>&#8211; (void) offHello {<br \/>\n\tself.hello.text = @&quot;&quot;;<br \/>\n}<\/p>\n<p>&#8211; (void) iyan {<br \/>\n\tself.hello.text = @&quot;\u3044\u3084\u3093\u3070\u304b\u3093&quot;;<br \/>\n}<\/p>\n<p>\/*<\/p>\n<p>\/\/ \u30d3\u30e5\u30fc\u8aad\u307f\u8fbc\u307f\u6642\u306b\u5b9f\u884c<br \/>\n\/\/ nib\u3092\u4f7f\u308f\u306a\u3044\u3068\u304d\u306f\u3053\u3061\u3089\u3092\u4f7f\u7528<br \/>\n&#8211; (void)loadView {<br \/>\n}<br \/>\n*\/<\/p>\n<p>\/*<br \/>\n\/\/ \u30d3\u30e5\u30fc\u8aad\u307f\u8fbc\u307f\u6642\u306b\u5b9f\u884c<br \/>\n\/\/ nib\u3092\u4f7f\u3046\u3068\u304d\u306f\u3053\u3061\u3089\u3092\u4f7f\u7528<br \/>\n&#8211; (void)viewDidLoad {<br \/>\n    [super viewDidLoad];<br \/>\n}<br \/>\n*\/<\/p>\n<p>\/*<br \/>\n\/\/\u6a2a\u5411\u304d\u30a2\u30d7\u30ea\u3084\u3001\u50be\u304d\u3092\u56fa\u5b9a\u3057\u305f\u308a\u3059\u308b\u3068\u304d\u306b<br \/>\n&#8211; (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {<br \/>\n    return (interfaceOrientation == UIInterfaceOrientationPortrait);<br \/>\n}<br \/>\n*\/<\/p>\n<p>\/\/\u30e1\u30e2\u30ea\u30fc\u304c\u306a\u3093\u304b\u3048\u3089\u3044\u3053\u3068\u306b\u306a\u3063\u305f\u3089\u5b9f\u884c<br \/>\n&#8211; (void)didReceiveMemoryWarning {<br \/>\n    [super didReceiveMemoryWarning];<br \/>\n}<\/p>\n<p>\/\/ \u30d3\u30e5\u30fc\u6d88\u53bb\u6642\u306b\u5b9f\u884c<br \/>\n&#8211; (void)viewDidUnload {<br \/>\n}<\/p>\n<p>\/\/ \u30e1\u30e2\u30ea\u89e3\u653e<br \/>\n&#8211; (void)dealloc {<br \/>\n    [super dealloc];<br \/>\n}<\/p>\n<p>@end<br \/>\n[\/c]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iPhone\u30a2\u30d7\u30ea\u3068iPad\u30a2\u30d7\u30ea\u309210\u672c\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u5f8c\u3067\u306a\u3093\u3067\u3059\u304c\u3001\u672a\u3060\u306b\u3042\u307e\u308aiPhone\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u7406\u89e3\u3057\u305f\u3068\u306f\u3044\u3044\u304c\u305f\u3044\u72b6\u614b\u306e\u79c1\u3067\u3059\u3002 \u3053\u308c\u3067\u306f\u30a4\u30ab\u30f3\uff01\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3061\u3087\u3044\u3061\u3087\u3044\u4f5c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jinr_url_youtube":"","_jinr_pip_youtube":false,"_jinr_time_youtube":"","_jinr_thumb_youtube":"","_jinr_media_youtube":"","_jinr_category_edit":false,"_jinr_category":"","_jinr_title_display":false,"_jinr_snsbutton_display":false,"_jinr_ads_display":false,"_jinr_thumbnail_display":false,"_jinr_profile_display":false,"_jinr_representations_display":false,"_jinr_relatedpost_display":false,"_jinr_sidebar1col_display":false,"_jinr_sidebar2col_display":false,"_jinr_seotitle_display":"","_jinr_description_display":"","_jinr_keyword_display":"","_jinr_hastag_display":"","_jinr_canonical_display":"","_jinr_noindex_display":false,"_jinr_paidpost":false,"_jinr_paidpost_product_id":"","_jinr_headtag_article":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-1040","post","type-post","status-publish","format-standard","hentry","category-iphone"],"views":"0","_links":{"self":[{"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/posts\/1040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/picxpic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1040"}],"version-history":[{"count":0,"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/posts\/1040\/revisions"}],"wp:attachment":[{"href":"https:\/\/picxpic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picxpic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picxpic.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}