2012-03-01ãã1ã¶æéã®è¨äºä¸è¦§
[NSString stringWithFormat:@"%d",i];ããããªã åè intåâNSStringå - 3ã¶æã§iPhoneã¢ããªã1æ¬ä½ãæ¥è¨ - iPhoneã¢ããªéçºã°ã«ã¼ã
NSStringã®stringWithFormatã使ã NSStringã®stringByAppendingString ãããããã«æãã
@implementation NSString(URL) -(NSURL *) toNSURL { return [NSURL URLWithString:self]; } @end ããã® NSURL *url = [@"http://www.glpgs.com/" toNSURL]; NSLog(@"%@", url);ã¨ãããéã³ã
UDID 端æ«åºå®ã®å¤ã macã¢ãã¬ã¹çã¤ã¡ã¼ã¸ã UUID ä¸æã«ãªãå¯è½æ§ããã¡ãããé«ãå¤ãè¿ãé¢æ°çãªã®ããå¾ããå¤
safariãèµ·åããã NSURL *url = [NSURL URLWithString:@"http://www.yahoo.co.jp"]; [[UIApplication sharedApplication] openURL:url]; ãã¹ã£ãä¾ UIApplication *app = [[UIApplication alloc] init]; ã¨ããã¨è½ã¡ãã sharedApplicationã§åå¾ããã¿â¦
ãã£ãã㨠NSUserDefaultsã使ã£ã¦ã¿ãã AppDelegateã§ãã¼ã¿ç»é²ã ViewControllerã§NextViewControllerã«ç»é¢é·ç§»ã NextViewControllerã§ãã¼ã¿è¡¨ç¤ºãã¦å¥ã®ãã¼ã¿ã«ããæ¿ããã NextNextViewControllerã§ããæ¿ãããã¼ã¿ã表示ã§ãããã¨ã確èªã Apâ¦
åç½®ã Objective-Cã£ã¦ãªããæ £ããªãã¨ä½¿ãã«ããã§ãããã ãã¼ã¿æ§é ä½ãã®ããããæååæä½ãããã httpã§GETã§ã¢ã¯ã»ã¹ããã¨ãã®ã¯ã¨ãªã¼ãä½ãã®ã¨ãã£ã¦ãµã¯ãã¨ã§ããªããã®ã ãããããã£ã¦ã¿ããã ã½ã¼ã¹ NSArray *data = [NSArray arrayWiâ¦
åç½®ã ã©ã®è¨èªã§ããã²ãã¿ã¼ã¨ã»ãã¿ã¼ãæ¸ãã®ã£ã¦ã ãã£ãããã§ãããããããªã«æ å ±é è½ãããã§ãããã ã²ãã¿ã¼ãã»ãã¿ã¼ã ãã§ä½è¡æ¸ãããããããããªä¸çã§ãããã§ãããã ã¨ãããã¨ã§ã@propertyã¨@synthesizeã®åºçªã§ãã åæç¥èãè£â¦
èªåã§ä½ã£ãã¯ã©ã¹ã§ããªã²ã¼ãããã æ¢åã®ã¯ã©ã¹ã«ããªã²ã¼ããå¼ãã§ããã£ããã¨ãããã©ã èªåã§ãå¼ãã§ã¿ãã¼ãã ãã£ã¦ã¿ãã åèï¼protocolã¨é¢é£ãããã¯ã©ã¹ã®å®ç¾©æ¹æ³ - ãããã¼ãã¡ã¢ 5åã¡ã½ãããå¼ã°ããã¨ã³ã¼ã«ããã¯ãã¦ãããã dâ¦
ãããã³ã« Javaã§ããinterfaceã®ãã¨ã ã¡ã½ããã®å®£è¨ãå®ç¾©ããéåã ãã®åå¨ã ä¸å¿ãéçåä»ãã£ã½ãè¨èªãªã®ã§ãããããã³ã«ãè¦ããããããã£ã¦ãã¨ãªãã§ããããã ã©ã£ã¡ãã¨ããã¨æå¾ã«è¨è¿°ããããªã²ã¼ãã®å®è£ æ¼ããé²ãå½¹å²ã®æ¹ã使ç¨é »â¦
ã«ãã´ãª Rubyã®ãªã¼ãã³ã¯ã©ã¹ã«moduleãincludeããããã«ãç¬èªã®ã¯ã©ã¹ãæ¡å¼µã§ããä»æ§ã ä¸è¬çãªå½åè¦å ã¯ã©ã¹å + ã«ãã´ãªå. h ã¯ã©ã¹å + ã«ãã´ãªå.mã¨ãããã¡ã¤ã«åã«ããã®ãä¸è¬çã ã¾ãRubyã®ä¾ããï¼moduleã§æ¡å¼µï¼ Stringã¯ã©ã¹ãmodâ¦
https://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIBarButtonItem_Class/Reference/Reference.html
self.webView.delegate = self; NSURL *url = [NSURL URLWithString:@"http://yahoo.co.jp"]; NSURLRequest *req = [NSURLRequest requestWithURL:url]; [self.webView loadRequest:req];
èªåèªèº«ã®xibãã¡ã¤ã«ãä½ã£ãã¨ãinitãå¼ã³åºãã¨xibãã¡ã¤ã«ã®ä¸èº«ãè¦ãã ãã¡ã¤ã«æ§æ HogeViewController.h HogeViewController.m HogeViewController.xib ã½ã¼ã¹ [HogeViewController alloc init] çµæ xibãã¡ã¤ã«ã表示ãããã HogeViewControllâ¦
inité¢æ° inité¢æ°ã¯Obj-Cã®æ ¹æ¬ã«ãªãã¯ã©ã¹ã®ã¡ã½ãããªã®ã§ãããã以ä¸ã¿ããã«èªãã§ãxibãã¡ã¤ã«ãªããå¼ã°ããªãã ä¾ [[HogeViewController alloc] init]; ãªã¼ãã©ã¤ããã¦ãã¾ãã - (id)init { self = [super initWithNibName:@"HogeViewControlâ¦
ããããããããªãã¨ã ã·ãã¥ã¬ã¼ã¿ã®ã¢ããªã®ã¢ã¤ã³ã³ãæ¶ãã
xibãã¡ã¤ã«ãå¾ããã¤ãã£ã¦ãã¾ã£ãå ´å xibãã¡ã¤ã«ãããªããã¨æã£ã¦éçºãé²ãã段éã§ã ãã¨ã§ãã£ã±ãxibãã¡ã¤ã«ä½ã£ã¨ãã°ããã£ãã¨ãªã£ãã¨ãã©ãããã°ããã®ãã å½åè¦åã§ã¯ã²ãä»ããã¦ããã¦ãªãã å¾ããxibãã¡ã¤ã«ã¯ä½ããã®ã ããå½â¦
self.tabBarController.navigationItem.title = @"AA";
åè http://ja-jp.facebook.com/pages/SSO/210288488998353 http://developers.facebook.com/docs/mobile/ios/build/ Webã®ã¦ã¼ã¶èªè¨¼ã¨SSO (featuring facebook) â ããããããã Getting Started : Facebookéçºè åãããã¥ã¡ã³ãã®æ¥æ¬èªè¨³ã¨Tips Mobiâ¦
Build Phasesã®ã¿ããã Link Binary With Librariesã®ãï¼ããã Frameworkã追å ã§ããã
ç·¨é,移å 説æ vim xcode Emacs è¡åé¤ dd C-aC-kC-k xcodeã¨åã ãã¼ã¹ã p C-y xcodeã¨åã è¡çªå·ã¸ã£ã³ã :è¡çªå· cmd-L è¤æ°æ¥ã¾ã¨ãã¦åãåãå¾ãã¼ã¹ã Vjjdy C-aC-kC-kC-kC-kC-kC-kC-y xcodeã¨åã ããã¸ã§ã¯ãå æ¤ç´¢ shift cmd-F 次ãæ¤ç´¢ n cmâ¦
viewDidLoad viewDidLoadã«ããã²ã¼ã·ã§ã³ãã¼ã®è²æ¿ããªã©ã®å¦çãæ¸ããã initwithNibname initwithNibnameã ã¨ãã¾ã ç»é¢ãæç»ããã¦ãªããã è²æ¿ãã¨ãã§ãã¾ããã£ã¦ãªãã¨ããããã¿ããã
1è¡ã¨ã®ã è¡ã1è¡ã®ã¨ããªãã以ä¸ã®CSSã§ãè¶ ããé¨åãã...ãã«å¤ãã¦ãããã overflow:hidden; text-overflow:ellipsis; ã¡ãªã¿ã«ããã¯IEãå é²çã«åãå ¥ãããã®ã§ãããä»ã®ãã©ã¦ã¶ã§ã¯ä½¿ããªãã£ãã¨ããã®ã å¤ãèªãã ãã使ãããæè¿ã®ãã©â¦
ãªãã¨ãªããã£ã¦ã¿ãå ´å test1.html <html> <head> <link type="text/css" href="./test1.css" rel="stylesheet"> </head> <body> <div class="m"> <span class="l">aaaaaaaaaaa</span> <span class="r"> <span class="c1">bbbb</span> <span class="c2">ccccc</span> </span> </body> </html> test2.css div.m { width: 200px; bordeâ¦