ios开发学习笔记(这里一定有你想要的东西)


14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 1 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 iphone (?) [+] 2015 4 MVP “ 2014” CSDN 2014 [] ios 2012-09-12 21:01 19535 (10) 1,Search Bar storyboardbackgroundclear Color view [[self.searchBar.subviews objectAtIndex:0] removeFromSuperview]; 2,NSDate [java] 01.$ $$ $$$$ $$$$$ $$$$$$$ 02.$ G$$$$$Era$$$ $$$$$Text$$$$$AD$$$$$$$ 03.$ y$$$$$ $$$$$Year$$$$$1996$96$$$$$$$ 04.$ M$$$$$ $$$$$Month$$$$$July;$$$Jul;$07$$$$$$$ 05.$ w$$$$$ $$$$$Number$$$$$27$$$$$$$ 06.$ W$$$$$ $$$$$$$$Number$$$$$2$$$$$$$ 07.$ D$$$$$ $$$$$Number$$$$$189$$$$$$$ 08.$ d$$$$$ $$$$$$$$Number$$$$$$$$10$$$$$$$ 09.$ F$$$$$ $$$$$Number$$$$$$$$2$$$$$$$ 10.$ E$$$$$ $$$$Text$$$$$Tuesday;$$$Tue$$$$$$$ 11.$ a$$$$$Am/pm$$$ $$$$$$$$Text$$$$$PM$$$$$$$ 12.$ H$$$$$ 0M23 $$$$$Number$$$$$$$0$$$$$$$ 13.$ k$$$$$ 1M24 $$$$$$Number$$$$$24$$$$$$$ 14.$ K$$$$$am/pm$$$ 0M11 $$$$$Number$$$$0$$$$$$$ 15.$ h$$$$$am/pm$$$ 1M12 $$$$$Number$$$$12$$$$$$$ 16.$ m$$$$$ $$$$$$$$Number$$$$$30$$$$$$$ 17.$ s$$$$$ $$$$$$$$$Number$$$$$55$$$$$$$ 18.$ S$$$$$ $$$$$$$$$Number$$$$$978$$$$$$$ 19.$ z$$$$$ $$$$$General$$$time$$$zone$$$$$Pacific$$$Standard$$$Time;$$$PST;$$$GMTM08:00$$$$$$$ 20.$ Z$$$$$ $$$$$RFC$$$822$$$time$$$zone$$$$$M0800$$$$$$$ [ ] NSDateFormatter setFormat :@"yyyy-MM-dd" "HH:mm" “HH-mm” Never-say-Never Android iphone linux python mysql svn uBuntu · 2014 11 2014 10 2014 08 , | 541750 5702 1425 94 24 3 263 (39) (17) (45) (1) (3) (0) (1) (5) (1) (9) (3) (1) (3) (2) 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 2 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 [java] 01.$ // $$ 02.$ $$$$NSData$*$date$=$[NSDate$date];$$ 03.$ $$$$// $$ 04.$ $$$$NSLog(@"today$is$%@",date);$$ 05.$ $$$$$$ 06.$ $$$$// date 24 $$ 07.$ $$$$NSDate$*yesterday$=$[NSDate$dateWithTimeIntervalSinceNow:M(24*60*60)];$$ 08.$ $$$$NSLog(@"yesterday$is$%@",yesterday);// $$ 09.$ $$$$$$ 10.$ $$$$/* */$$$ 11.$ $$$$// $$ 12.$ $$$$NSString$*datestring$=$[NSString$stringWithFormat:@"1999M09M03"];$$$ 13.$ $$$$// nsdateformatter $$ 14.$ $$$$NSDateFormatter$*$dm$=$[[NSDateFormatter$alloc]init];$$$ 15.$ $$$$// $$$ $$ 16.$ $$$$[dm$setDateFormat:@"yyyyMMMMdd"];$$ 17.$ $$$$// Date dateFromString $$ 18.$ $$$$NSDate$*$newdate$=$[dm$dateFromString:datestring];$$ 19.$ $$$$// $$ 20.$ $$$$NSLog(@"newdate$is$%@",newdate);$$ 21.$ $$$$$$ 22.$ $$$$$$ 23.$ $$$$/* */$$ 24.$ $$$$// Date String $$ stringFromDate $$ 25.$ $$$$NSString$*$datestring2$=$[dm$stringFromDate:newdate];$$ 26.$ $$$$// $$ 27.$ $$$$NSLog(@"datestring2$is$%@",datestring2);$$ 3,UTTabviewCell UTTabviewCellaccessoryDetail Disclosure celldetail buttonstoryboardcellindentifier indentfier cell 4,StoryBoardsegue ViewController, TextField button storyboard segue, [self PerformSegueWithIdentifier:@"targetViewController",self]; navigatorViewController, RootViewController push segue segue self.storyboard 2014 07 2014 05 xcode APP apple ( ) (4.4.1) storyboard Valid signing identity not found IDP Certificate App ID Devices Provisioning Profiles Socket (Android TCP&&UDP ) ios Android Service broadcast+system/app Android ( ) ios view frame bounds android PopupWindow ios Mac SVN Cornerstone Versions subversion iOS Android Service broadcast+system/app (4.4.1) storyboard Android OpenStreetMap xcode APP apple ( ) Socket (Android TCP&&UDP ) ios view frame bounds ios (CalloutView)-->( ,google ) ios android PopupWindow google map * * ShadowGun—— * Android Xfermode * “”--NDK NativeActivityAndroid * Android ——Gson Android Service broadcast+system/app zakums: 0 Android NetworkOnMainThreadException qq_21914959: Android SSO WEIBO_ANDROID_SDK V2.3.0 jim5252521: , !!!! Android Service broadcast+system/app QQ164681187: service ios view frame bounds Little_Virus: Android Service broadcast+system/app (11) (6) (61888) (35049) (21220) (20061) (19436) (18563) (17793) (17492) (16429) (12484) (40) (22) (20) (20) (19) (17) (12) (10) (9) (7) 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 3 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 navigatorViewController push 5,nilNilNULL http json null NSArray,NSdictionary, NSString null if(dict == nil) if(dict == Nil) if(dict == NULL) if(dict isEqual nil) null [NSNull null] isEqual:[NSNull null] nsarray str= null if(str == nil) str = if(str is equal [NSNull null ]) ios str==null null ios [NSNull null] hike2008: , Android OpenStreetMap u012418561: osm Android dongxuetucheng: Android Service broadcast+system/app linux_ : @winlandiano: , . . Android Service broadcast+system/app linux_ : @yangliang8: . . , . 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 4 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 null @"null" ios null @"" 6,uiview testView.layer.cornerRadius = 6; testView.layer.masksToBounds = YES; import cornerRadius masksToBounds uiview [theMainView setBackgroundColor: [UIColor colorWithPatternImage: [UIImage imageNamed: @"bg.png"]]]; imageName NSString *thePath = [[NSBundle mainBundle] pathForResource:@"default" ofType:@"jpeg"]; UIImage *prodImg = [[UIImage alloc] initWithContentsOfFile:thePath"]; controller.productImg.image = prodImg; [prodImg release]; 7, 1-1Did End On Exit return - (IBAction)textFieldShouldReturn:(UITextField *)textField { //[sender resignFirstResponder]; if (textField == chi) { [chi resignFirstResponder]; double m=[chi.textdoubleValue]/3.003; double f=m *3.2808; meter.text=[[NSStringalloc] initWithFormat:@"%.4f",m]; feet.text=[[NSStringalloc] initWithFormat:@"%.4f",f]; } if (textField == meter) { [meter resignFirstResponder]; } if (textField == feet) { [feet resignFirstResponder]; } } 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 5 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 1-2 -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch=[[event allTouches] anyObject]; if (touch.tapCount >=1) { [chi resignFirstResponder]; [meter resignFirstResponder]; [feet resignFirstResponder]; } } 1-2 remove view 8,UITextField TextField Secure( ) apple 9,NSPredicate [java] 01.$ NSString$*regex$=[NSString$stringWithFormat:@"^1(3[4M9]|5[012789]|8[2378]|47)\\d{8}$"];$$ 02.$ NSPredicate$*predicate$=$[NSPredicate$predicateWithFormat:@"SELF$MATCHES$%@",regex];$$ 03.$ BOOL$isMatch$=$[predicate$evaluateWithObject:editPhoneField.text];$$ 10, 1 Supporting Files infoPlist.strings CFBundleDisplayName=" "; 2 chinese infoPlist.strings 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 6 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 plist ( / ) 11,Xcode [java] 01.$ //$$testAppDelegate.m$$$$ 02.$ //$$test$$$$ 03.$ //$$$$ 04.$ //$$Created$by$gaohf$on$11M5M24.$$$$ 05.$ //$$Copyright$2011$__MyCompanyName__.$All$rights$reserved.$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 7 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 [java] 01.$ //$$$$ 02.$ //$$testAppDelegate.m$$$$ 03.$ //$$test$$$$ 04.$ //$$$$ 05.$ //$$Created$by$gaohf$on$11M5M24.$$$$ 06.$ //$$Copyright$2011$COMPANY.$All$rights$reserved.$$$$ 07.$ //$$$$ 12,uinavigation,uitoolbar uiview view [java] 01.$ [[UIApplication$sharedApplication].keyWindow$addSubview:waitingview];$$ waitingview uiWindow self.view 13,storyboard navigationViewController in init ViewController StoryboardApp[8593:207] Failed to instantiate the default view controller for UIMainStoryboardFile 'MainStoryboard' - perhaps the designated entry point is not set? StoryBoardview controllerInitial Sceneview conrollerstory board 14,uiNavigationBar [java] 01.$ defaults$write$com.apple.Xcode$PBXCustomTemplateMacroDefinitions$'{"ORGANIZATIONNAME"$=$"COMPANY";}' 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 8 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 // : // : [java] 01.$ [self.navigationController.navigationBar$setBackgroundImage: [UIImage$imageNamed:@"navbg.png"]$forBarMetrics:UIBarMetricsDefault];$$ 5.0 api setBackgroundImage 5.0 drawRect backButton rightButtonItem Bar button Item 15,uiview storyboard xib uiview alpha image imageview [java] 01.$ [leftNaviView$setBackgroundColor:[UIColor$colorWithPatternImage: [UIImage$imageNamed:@"pabb_leftnaviview_bg.png"]]];$$ [java] 01.$ [leftNaviView$setFrame:CGRectMake(9,$60,$120,$250)];$$ [java] 01.$ UIColor$*itemcolor$=$[UIColor$colorWithRed:100.0f/255.0f$green:176.0f/255.0f$blue:0.0f/255.0f$alpha: 02.$ self.navigationController.navigationBar.tintColor$=$itemcolor;$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 9 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 16,AppStore [java] 01.$ $$$$$$$$// id $$ 02.$ //$$$$$$$$int$m_appleID$=$576337094;$$ 03.$ //$$$$$$$$NSString$*str$=$[NSString$stringWithFormat:$$ 04.$ //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$@"itmsM apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews? type=Purple+Software&id=%d",$$ 05.$ //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$m_appleID$];$$ 06.$ $$$$$$$$// appstore $$ 07.$ $$$$$$$$NSString$*url$=$[NSString$stringWithFormat:@"http://itunes.apple.com/cn/app/huoMxingM sheMxinMdian/id549425594?l=en&mt=8"];$$ 08.$ $$$$$$$$[[UIApplication$sharedApplication]$openURL:[NSURL$URLWithString:url]];$$ appID appstore url 17,safariphonemessage 1 phone [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://4008008288"]]; 2 safari 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 10 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.abt.com"]]; 3 mail [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://admin@abt.com"]]; 4 SMS [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://800888"]]; 5 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]]; Email MessageUI.framework #import MFMessageComposeViewControllerDelegate [java] 01.$ sendSMS $$ 02.$ // $$ 03.$ M$(void)sendSMS:(NSString$*)bodyOfMessage$recipientList:(NSArray$*)recipients$$ 04.$ {$$ 05.$ $$$ 06.$ $$$$MFMessageComposeViewController$*controller$=$[[[MFMessageComposeViewController$alloc]$init]$autorelease];$$ 07.$ $$$ 08.$ $$$$if([MFMessageComposeViewController$canSendText])$$ 09.$ $$$ 10.$ $$$${$$ 11.$ $$$ 12.$ $$$$$$$$controller.body$=$bodyOfMessage;$$$$$ 13.$ $$$ 14.$ $$$$$$$$controller.recipients$=$recipients;$$ 15.$ $$$ 16.$ $$$$$$$$controller.messageComposeDelegate$=$self;$$ 17.$ $$$ 18.$ $$$$$$$$[self$presentModalViewController:controller$animated:YES];$$ 19.$ $$$ 20.$ $$$$}$$$$$ 21.$ $$$ 22.$ }$$ 23.$ $$$ 24.$ //$ $$ 25.$ M$(void)messageComposeViewController: (MFMessageComposeViewController$*)controller$didFinishWithResult: (MessageComposeResult)result$$ 26.$ {$$ 27.$ $$[self$dismissModalViewControllerAnimated:YES];$$ 28.$ $$$ 29.$ $$if$(result$==$MessageComposeResultCancelled)$$ 30.$ $$$$NSLog(@"Message$cancelled")$$ 31.$ $$else$if$(result$==$MessageComposeResultSent)$$ 32.$ $$$$NSLog(@"Message$sent")$$$$ 33.$ $$else$$$ 34.$ $$$$NSLog(@"Message$failed")$$$$ 35.$ }$$ 36.$ $$$ 37.$ $$$ 38.$ $$ 39.$ #import$$$ 40.$ MFMailComposeViewControllerDelegate$$ 41.$ $$$ 42.$ // $$ 43.$ M(void)sendMail:(NSString$*)subject$content:(NSString$*)content{$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 11 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 18,Alertview [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; 19, -(void)checkboxClick:(UIButton *)btn { btn.selected = !btn.selected; } - (void)viewDidLoad { UIButton *checkbox = [UIButton buttonWithType:UIButtonTypeCustom]; CGRect checkboxRect = CGRectMake(135,150,36,36); [checkbox setFrame:checkboxRect]; [checkbox setImage:[UIImage imageNamed:@"checkbox_of.png"] forState:UIControlStateNormal]; [checkbox setImage:[UIImage imageNamed:@"checkbox_on.png"] forState:UIControlStateSelected]; [checkbox addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:checkbox]; 44.$ $$$ 45.$ $$$$MFMailComposeViewController$*controller$=$[[[MFMailComposeViewController$alloc]$init]$autorelease];$$ 46.$ $$$ 47.$ $$$$if([MFMailComposeViewController$canSendMail])$$ 48.$ $$$ 49.$ $$$${$$ 50.$ $$$ 51.$ $$$$$$$$[controller$setSubject:subject];$$ 52.$ $$$ 53.$ $$$$$$$$[controller$setMessageBody:content$isHTML:NO];$$ 54.$ $$$ 55.$ $$$$$$$$controller.mailComposeDelegate$=$self;$$ 56.$ $$$ 57.$ $$$$$$$$[self$presentModalViewController:controller$animated:YES];$$ 58.$ $$$ 59.$ $$$$}$$$$$$ 60.$ }$$ 61.$ $$$ 62.$ // $$ 63.$ M(void)mailComposeController:(MFMailComposeViewController$*)controller$didFinishWithResult: (MFMailComposeResult)result$error:(NSError$*)error{$$ 64.$ $$$ 65.$ $$$$[self$dismissModalViewControllerAnimated:YES];$$ 66.$ $$$ 67.$ $$$$if$(result$==$MessageComposeResultCancelled)$$ 68.$ $$$$$$$$NSLog(@"Message$cancelled");$$ 69.$ $$$$else$if$(result$==$MessageComposeResultSent)$$ 70.$ $$$$$$$$NSLog(@"Message$sent");$$$ 71.$ $$$$else$$$ 72.$ $$$$$$$$NSLog(@"Message$failed");$$$$ 73.$ $$$ 74.$ }$$ 75.$ $$$ 76.$ .xib$ Localization chinese$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 12 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 } 20,app [java] 01.$ mainBundle infoDictionary $$ 02.$ NSDictionary*$infoDict$=[[NSBundle$mainBundle]$infoDictionary];$$ 03.$ NSString*$versionNum$=[infoDict$objectForKey:@"CFBundleVersion"];// $$ 04.$ NSString*appName$=[infoDict$objectForKey:@"CFBundleDisplayName"];//app $$ version info Bundle version value CFBundleVersion CFBundleShortVersionString “CFBundleVersion” Version CFBundleShortVersionString 1.1.0 1.1.1 Build CFBundleVersion 11 11 12 13 ....10000 21, [java] 01.$ [[UIApplication$sharedApplication]$setIdleTimerDisabled:YES];$$ NO [java] 01.$ NSString$*$versionShortString$=$[infoDict$@"CFBundleShortVersionString"];//

NSString*text$=[NSString$stringWithFormat:@"%@$%@",appName,versionNum,versionShortString];$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 13 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 22,XcodeA(MC)? SVN GIT Xcode 'A' 'D' 'M' 'R' 'C' 'I' '?' '!' 23,ios5viewFrame 4 UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown Portrait UpsideDown Left Right Home ViewController [java] 01.$ M$(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation$$ 02.$ {$$ 03.$ $$$$// $$ 04.$ $$$$// YES NO$$ 05.$ $$$$return$(interfaceOrientation$!=$UIInterfaceOrientationPortraitUpsideDown);$$ 06.$ $$$$$$ 07.$ }$$ ViewController 4 YES Supported Device Orientations Support Portrait UpsideDown ViewController 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 14 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 view Frame bound [java] 01.$ M(void)willAnimateRotationToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation$duration:(NSTimeInterval)duration{$$ 02.$ $$ 03.$ $$$$// $$ 04.$ $$$$if$(UIInterfaceOrientationIsLandscape(toInterfaceOrientation))${$$ 05.$ $$$$$$$$myMapview.frame$=$CGRectMake(0,0,480,$300);$$ 06.$ $$$$}$$ 07.$ $$$$// $$ 08.$ $$$$else{//==$else$if(UIInterfaceOrientationIsPortrait(toInterfaceOrientation))$$ 09.$ $$$$$$$$myMapview.frame$=$CGRectMake(0,$0,$320,460);$$ 10.$ $$$$}$$ 11.$ $$ 12.$ }$$ ios6 http://blog.csdn.net/zzfsuiye/article/details/8251060 IOS6 IOS6 http://blog.csdn.net/huifeidexin_1/article/details/7826159 ios http://blog.csdn.net/xiaoyun8822/article/details/8213738 Ios5( ) 24,Xcode 1 Application windows are expected to have a root view controller at the end of application launch ios5 root view controller _rootViewController = [[RootViewController alloc] init]; self.window.rootViewController = _rootViewController; Xib Storyboard ViewController RootViewController View view Clean 25,viewview1view2 storyboard view1 viewController Mapview view2 storyboard view1 view1 view2 window subview NSLog(@"subviews:%@",self.view.subviews); subview NSArray 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 15 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 3 view UILabel view2 view1 self.view replace view2 view1 [self.viewexchangeSubviewAtIndex:1withSubviewAtIndex:2]; log Mapview view1 self.view exchangeSubviewAtIndex:withSubviewAtIndex:]; 26,UINavigationBar Navigation Controller rootviewcontroller push view navigationBar // NavigationBar -(void) viewWillAppear:(BOOL)animated{ [self.navigationControllersetNavigationBarHidden:YESanimated:YES]; // [super viewWillAppear:animated]; } -(void) viewWillDisappear:(BOOL)animated{ [self.navigationControllersetNavigationBarHidden:NOanimated:YES]; [super viewWillDisappear:animated]; } 27,UITextFieldtextField 1 UITextFieldDelegate 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 16 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 2 textField:shouldChangeCharactersInRange:replacementString: [java] 01.$ M(BOOL)textField:(UITextField$*)textField$shouldChangeCharactersInRange: (NSRange)range$replacementString:(NSString$*)string{$$ 02.$ $$$$int$kMaxLength$=$11;$$ 03.$ $$$$$$ 04.$ $$ 05.$ $$$$NSInteger$strLength$=$textField.text.length$M$range.length$+$string.length;$$ 06.$ $$$$// $M$textfield = + 0 $$ 07.$ $return$(strLength$<=$kMaxLength);}$$ if(range.location<=11) return if (textfield.text.length>=11) 11 11 X location 11 NO - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string textField range string textField YES NO textField textField UITextFieldDelegate UITextField range UITextField range.length 0 range.location string string string.length 0 28,ios5.0table View Cell [cpp] 01.$ UINib$*nib$=$[UINib$nibWithNibName:@"TvWeiboCell"$bundle:nil];$$ 02.$ $$$$$$$$[tableView$registerNib:nib$forCellReuseIdentifier:CellIdentifier];$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 17 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 29,iOSiPadapp iphone APP 57X57 114X114 pixel app_icon @2x iphone 320X460 320X480 pixel Default.png iPad APP 72X72 144X144 pixel ipad 768X1004 768X1024 pixel Default-Portrait~ipad.png Default-Portrait@2x~ipad.png 30,NSLogNSRange,CGRect NSString NSStringFromCGPoint NSStringFromCGSize NSStringFromCGRect NSStringFromCGAffineTransform NSStringFromUIEdgeInsets NSLog(@"rect1: %@", NSStringFromCGRect(rect1)); 31,navigationviewcontrollerpopviewcontrollerpushviewcontroller 2 [self.navigationControllerpopViewControllerAnimated:YES]; 2 rootviewcontroller 2 1 1 2 self set 2 2 id 1self 3 1 [self.navigationControllerpopToViewController:controlleranimated:YES]; [cpp] 01.$ NSArray$*viewControllers=[self.navigationController$viewControllers];$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 18 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 02.$ UIViewController$*controller=[viewControllers$objectAtIndex:1];$$ navigation push viewcontroller viewcontroller nsarray array viewcontroller [cpp] 01.$ [self.navigationController$popToViewController:controller$animated:YES];$$ 1 popToViewController 32,self.navigationItem.backBarButtonItem title App UINavigationController title leftButtonItem title NavigationBar leftButtonItem title self.navigationItem.leftBarButtonItem.title = @" "; self.navigationItem.backBarButtonItem.title = @" "; title viewDidLoad [cpp] 01.$ UIBarButtonItem$*temporaryBarButtonItem$=$[[UIBarButtonItem$alloc]$init];$$ 02.$ $temporaryBarButtonItem.title$=@" ";$$ 03.$ $self.navigationItem.backBarButtonItem$=$temporaryBarButtonItem;$$ 04.$ $[temporaryBarButtonItem$release];$$$//$ $$ self.navigationItem.backBarButtonItem self.navigationItem.leftBarButtonItem/rightBarButton --------------------------------------------------------------------------------------------------------- UIWindow UINavigationController UIViewController UIViewController UIWindow UIView UIView UIView UIView UIWindow UIView UIView UIViewController UIView UIViewController UIViewController UINavigationBar UIView UIView UINavigationBar UINavigationItem UINavigationItem UINavigationController UIViewController UIViewController UIViewController UIViewController UINavigationItem UINavigationBar UINavigationController UIViewController UINavigationBar UIViewController --------------------------------------------------------------------------------------------------------- 33,self.navigationItemself.navigationController.navigationItem /**********************************************/ self.navigationItem self.navigationController.navigationItem self.navigationController.navigationBar /**********************************************/ 1, self.navigationItem self.navigationController.navigationItem , UINavigationItem ViewController appearence navigationItem 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 19 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 UIViewController UINavigationControllerItem : @interface UIViewController (UINavigationControllerItem) @property(nonatomic,readonly,retain)UINavigationItem * navigationItem; ... @end VC VC navigationItem 2. UINavigationBar UIView UINavigationController , self.tabBarController.tabBar UINavigationBar , self.navigationController.navigationBar VC self.navigationItem, self.navigationItem.leftBarButtonItem self.navigationItem.rightButtonItem, self.navigationItem.titleView, CustomView self.navigationItem.titleView 34, [cpp] 01.$ +(UIImage$*)scale:(UIImage$*)image$toSize:(CGSize)size$$ 02.$ {$$ 03.$ $$$$UIGraphicsBeginImageContext(size);$$ 04.$ $$$$[image$drawInRect:CGRectMake(0,$0,$size.width,$size.height)];$$ 05.$ $$$$UIImage$*scaledImage$=$UIGraphicsGetImageFromCurrentImageContext();$$ 06.$ $$$$UIGraphicsEndImageContext();$$ 07.$ $$$$return$scaledImage;$$ 08.$ }$$ 35,NSString iOS 6 NSString [cpp] 01.$ NSString$*str$=$@"mobile$developer$tips";$$ 02.$ $$$ 03.$ //$Convert$string$to$uppercase$$ 04.$ NSString$*upperStr$=$[str$uppercaseStringWithLocale:[NSLocale$currentLocale]];$$ 05.$ NSLog(@"upperStr:$%@",$upperStr);$$ 06.$ $$$ 07.$ //$Convert$string$to$caps$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 20 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 08.$ NSString$*capStr$=$[upperStr$capitalizedStringWithLocale:[NSLocale$currentLocale]];$$ 09.$ NSLog(@"capStr:$%@",$capStr);$$ 10.$ $$$ 11.$ //$Convert$string$to$lowercase$$ 12.$ NSString$*lowerStr$=$[capStr$lowercaseStringWithLocale:[NSLocale$currentLocale]];$$ 13.$ NSLog(@"lowerStr:$%@",$lowerStr);$$ 36, UIDevice [[UIDevice currentDevice] systemName]; [[UIDevice currentDevice] systemVersion];//os version [[UIDevice currentDevice] uniqueIdentifier]; [[UIDevice currentDevice] model]; [[UIDevice currentDevice] name]; System Name: iPhone OS System Version: 4.2.1 Unique ID: 9b5ded78d5fa0ac96250f8b4af0e46f40b96ea6d Model: iPhone Name: “wwk” iPhone System Name: iPhone OS System Version: 4.2 Unique ID: 21FFE0FF-429B-5D0B-96D2-EADCA3203260 Model: iPhone Simulator Name: iPhone Simulator uniqueIdentifier iPhone http://blog.csdn.net/qiwancong/article/details/7914923 37,could not change executable permissions demo bundle identifier identifier demo identifier demo 38,iphone5 [cpp] 01.$ mymapview$=$[[BMKMapView$alloc]$initWithFrame:CGRectMake(0,0,320,460+(iPhone5?88:0))];$$ iphone5 View 568 Nav(44)+ (20), 504 iphone4s 480 Nav+ 416 88( ). http://www.cnblogs.com/maxfong/archive/2012/10/04/2711379.html [cpp] 01.$ #define$iPhone5$([UIScreen$instancesRespondToSelector:@selector(currentMode)]$?$CGSizeEqualToSize(CGSizeMake(640,$1136),$[[UIScreen$mainScreen]$currentMode].size)$:$NO) 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 21 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 39,invalid deployment target for -stdlib=libc++ (requires iOS 5.0 or later) --target---build settings C++Standard Library Compiler Default . 40,iphone Audio Toolbox framework #import AudioServicesPlaySystemSound(1000);// AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); // id http://iphonedevwiki.net/index.php/AudioServices http://blog.csdn.net/tskyfree/article/details/8096500 http://www.cnblogs.com/martin1009/archive/2012/06/14/2549473.html http://www.cnblogs.com/chen1987lei/archive/2012/02/07/2341535.html 41,2loadViewviewDidLoad UIViewController loadView ( ) 2 loadView viewDidLoad [cpp] 01.$ $$ [cpp] 01.$ M$(void)loadView${$$ 02.$ $$$$$$NSLog(@"loadView");$$ 03.$ $$$$$$//$ $$ 04.$ $$$$$$[UIApplication$sharedApplication].statusBarHidden$=$YES;$$ 05.$ $$$$$$$$ 06.$ $$$$$$//$....$ UIView$$ 07.$ $$$$$$self.view$=$[[[UIView$alloc]$initWithFrame: [UIScreen$mainScreen].bounds]$autorelease];$$ 08.$ $$$$$$self.view.backgroundColor$=$[UIColor$grayColor];$$ 09.$ $$}$$ 10.$ $$$$ 11.$ $$M$(void)viewDidLoad${$$ 12.$ $$$$$$[super$viewDidLoad];$$ 13.$ $$$$$$NSLog(@"viewDidLoad");$$ 14.$ $$}$$ 1 2013-05-14 00:51:36.152 test[2251:c07] loadView 2 2013-05-14 00:51:36.153 test[2251:c07] loadView 3 2013-05-14 00:51:36.153 test[2251:c07] viewDidLoad 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 22 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 4 2013-05-14 00:51:36.154 test[2251:c07] viewDidLoad 2 loadView viewDidLoad 2 UIView UIViewController UIView loadView UIView viewDidLoad 42,UIButton UIImageView UIImageView userInteractionEnabled YES imageView.userInteractionEnabled = YES; YES UIImageView 43,appDefault.png app iOS Default.png iOS app Default.png Info.plist app lufy.png app Default.png " " 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 23 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 Default.png AppDelegate application:didFinishLaunchingWithOptions: [UIApplication sharedApplication].statusBarHidden = YES; Default.png Default.png 1> Default.png app app 2> AppDelegate application:didFinishLaunchingWithOptions: app Info.plist YES app ( ) Default.png [UIApplication sharedApplication].statusBarHidden = NO; 44,ASIHTTPRequestcookies APPCookieAPPAPP Cookie2app cookiersession cookierappASIHTTPcookie cookieCoreDataSQLiteUserDefault ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:UserInfoURL]; [request setRequestMethod:@"POST"]; 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 24 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 [request addRequestHeader:@"Cookie" value:[NSString stringWithFormat:@"cookie=%@", [[NSUserDefaults standardUserDefaults] objectForKey:@"cookie"]]];//cookieHeadercookie 45,UITextField//done/ TextField YES NO searchField.enablesReturnKeyAutomatically =YES; 46,QQIM png ios 47,UITableViewUITextFieldTextField TextField delegate [cpp] 01.$ M$(void)textFieldDidBeginEditing:(UITextField$*)textField${$$ 02.$ $$$$[self.tableView$setContentOffset:CGPointMake(0,$70)$animated:YES];$$ 03.$ $$$$ 04.$ }$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 25 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 tableview 70 UITextFiled CGPoint 70. tableview scrollEnabled YES; return tableview [cpp] 01.$ M$(BOOL)textFieldShouldReturn:(UITextField$*)sender${$$ 02.$ $$$$[self.tableView$setContentOffset:CGPointMake(0,$0)$animated:YES];$$ 03.$ $$$$return$YES;$$ 04.$ }$$ 48,ios log : [cpp] 01.$ 2013M05M20$11:14:19.635$GestureRecognizer[1491:c07]$M [__NSCFNumber$isEqualToString:]:$unrecognized$selector$sent$to$instance$0x7a88df0$$ 02.$ 2013M05M 20$11:15:21.148$GestureRecognizer[1491:c07]$***$Terminating$app$due$to$uncaught$exception$'NSInvalidArgumentException' [__NSCFNumber$isEqualToString:]:$unrecognized$selector$sent$to$instance$0x7a88df0'$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 26 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 value isEqualToString main 49,UIImageView windows N UImageView ContentMode clipToBounds UImageView UIView backgroundColor [cpp] 01.$ UIView$*gridView$=$[[UIView$alloc]$initWithFrame:CGRectMake(0,$0,$320,$195)];$$ 02.$ gridView.backgroundColor$=$[UIColor$colorWithPatternImage:BUNDLE_IMAGE(@"blue_grid")];$$ 03.$ [self.view$addSubview:gridView];$$ 04.$ [gridView$release];$$ 6X6 50,UITableViewCell backgroundColor tableview Cell Cell [cpp] 01.$ M(UITableViewCell$*)tableView:(UITableView$*)tableView$cellForRowAtIndexPath: (NSIndexPath$*)indexPath{$$ 02.$ $$$$$$ 03.$ $$$$// ....$$ 04.$ $$$$$$ 05.$ $$$$cell.textLabel.font$=$[UIFont$systemFontOfSize:6.0];$$ 06.$ $$$$cell.textLabel.text$=$@"13832207020";$$ 07.$ $$ 08.$ $$$$if$(indexPath.row==0)${$$ 09.$ $$ 10.$ $$$$$$$$[cell$setBackgroundColor: [UIColor$colorWithRed:100.0f/255.0f$green:176.0f/255.0f$blue:0.0f/255.0f$alpha:1.0f]];$$ 11.$ $$$$}$$ 12.$ $$$$else{$$ 13.$ $$$$$$$$[cell$setBackgroundColor:[UIColor$whiteColor]];$$ 14.$ $$$$}$$ 15.$ $$$$$$ 16.$ $$$$return$cell;$$ 17.$ }$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 27 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 1 cell UITableViewStylePlain UITableViewStyleGrouped tableview backgroundView backgroundColor Grouped cell view reload init tableview cell selected cell setSelected:YES animated:YES tableview 51,UITableViewCellcontentView UITableViewCell Cell Cell UILabel UIbutton Highlighted highlightedTextColor UIControlStateHighlighted 1 highlighted 2 Cell [cpp] 01.$ M$(void)setSelected:(BOOL)selected$animated:(BOOL)animated$$ 02.$ {$$ 03.$ $$$$ 04.$ $$$$[super$setSelected:selected$animated:animated];$$ 05.$ $$$$$$$ 06.$ $$$$if$(selected)${$$ 07.$ $$$$$$$$// UITableViewCell SettingButton NO$$ 08.$ $$$$$$$$[(UIButton$*)[self.contentView.subviews$objectAtIndex:1]$setHighlighted:NO];$$ 09.$ $$$$$$$$[settingBtn$setImage:BUNDLE_IMAGE(@"accessory_sel")$forState:UIControlStateNormal];$$ 10.$ $$$$}$$ 11.$ $$$$else{$$ 12.$ $$$$$$$$[settingBtn$setImage:BUNDLE_IMAGE(@"accessory_nor")$forState:UIControlStateNormal];$$ 13.$ $$$$}$$ 14.$ $$$$$$ 15.$ $$$$$ 16.$ }$$ 52,IOS atomicnonatomicassign,copyretain atomic nonatomic getter setter atomic @property atomic atomic setter {lock} if (property != newValue) { [property release]; property = [newValue retain]; } {unlock} nonatomic atomic Objc [cpp] 01.$ NSIndexPath$*indexPath$=$[NSIndexPath$indexPathForRow:i$inSection:0];$$ 02.$ terminalTableView$selectRowAtIndexPath:indexPath$animated:YES$scrollPosition:UITableViewScrollPositionNone];$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 28 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 iPhone nonatomic nonatomic nonatomic assign NSInteger CGFloat C int, float, double, char assign NSCopying retain NSObject release retain retain retain Objective-C Core Foundation ( retain Core Foundation —— ) : +1 copy NSString copy NSCopying “ ” copy retain Copy retain 1. NSString 0×1111 @”STR” Copy NSString 0×2222 2. retain 1 retain NSString retain +1 retain copy assign retain 1. C malloc a b a assign b a b a a b a b crash 2. 1 assign reference counting a 1 a b 2 a 1 b 1 0 assign retain assign 1 int, float assign retain 2 retain 1, release 1 0 dealloc 53,#pragma mark -#pragma mark Initialization Xcode ; #pragma mark – “-” Xcode “Preferences..” “Code Sense” ”Sort listalphabetically” 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 29 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 54,delegateassignretain ; (callback) delegate @property (assign) xxxDelegate delegate; assign retain delegate assign retain retain retain loop 55,self @property @synthesize "self." setmember member=[NSString stringWithFormat:@””]; setmember self self.member=[NSString stringWithFormat:@””]; setmember 56,UIbutton ImageTitle [cpp] 01.$ $startRangeButton$=$[UIButton$buttonWithType:UIButtonTypeCustom];$$ 02.$ $startRangeButton.frame$=$CGRectMake(85,componentOriginY,$regionImage.size.width,$16);$$ 03.$ [startRangeButton$setBackgroundImage:regionImage$forState:UIControlStateNormal];$$ 04.$ // startRangeButton$setBackgroundImage:regionImage$forState:UIControlStateHighlighted];$$ 05.$ $startRangeButton.titleLabel.font$=$[UIFont$systemFontOfSize:7.0];$$ 06.$ [startRangeButton$setTitle:@"2013M08M01$07:00"$forState:UIControlStateNormal];$$ 07.$ [startRangeButton$setTitleColor:COLOR(101,$199,$240,$1)$forState:UIControlStateNormal];$$ 08.$ [startRangeButton$setTitleColor:[UIColor$whiteColor]$forState:UIControlStateHighlighted];$$ button regionImage button title = “2013-08-01 07:00” title button.titleLabel.text tiitle button.setBackgroundImage set Image image 57,NSDate1970/1/1? [formatter setDateFormat:@"yyyy-MM-dd HH:mm"]; 1000 [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; SS [formattersetDateFormat:@"yyyy-MM-dd HH:mm.ss.SSS"]; 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 30 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 1000 [cpp] 01.$ NSDateFormatter$*formatter$=$[[NSDateFormatter$alloc]$init];$$ 02.$ [formatter$setDateFormat:@"yyyyMMMMdd$HH:mm"];$$ 03.$ $$ 04.$ NSDate$*sDate$$=$[formatter$dateFromString:startRangeButton.titleLabel.text];$$ 05.$ NSDate$*eDate$=$[formatter$dateFromString:endRangeButton.titleLabel.text];$$ 06.$ NSTimeInterval$sinterval$=$$[sDate$timeIntervalSince1970];$$ 07.$ long$long$start$=$sinterval*1000;$$ 08.$ NSTimeInterval$einterval$=$[eDate$timeIntervalSince1970];$$ 09.$ long$long$end$=$einterval*1000;$$ 10.$ [mConnectionHelper$doTrack:mobile$startTime:start$endTime:end];$$ 58,ios Objective-C 1 C/C++ "extern" 2 AppDelegate AppDelegate Objective-C C++ A implementation(.m .mm) static A class method A static static A static [cpp] 01.$ //example.h$$$$$$ 02.$ @interface$Example$:$NSObject${$$$$$ 03.$ $$$$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 31 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 04.$ }$$$ 05.$ M$(id)init;$$$$$$ 06.$ +(int)instanceCount;$$$$$$$$$$ 07.$ @end$$$$ [cpp] 01.$ //example.m$$$$$$ 02.$ $#import$"example.h"$$$$$$$$$$$ 03.$ static$int$count;$$$$$$$$$$ 04.$ @implementation$Example$$$$$$ 05.$ M(id)init{$$$$$$ 06.$ $$$$self$=$[super$init];$$$$$$ 07.$ $$$$if(nil!=self){$$$$$$ 08.$ $$$$$$$$count+=1;$$$$$$ 09.$ $$$$}$$$$$$ 10.$ $return$self;$$$$$$ 11.$ }$$$$$$$$$$ 12.$ +(int)instanceCount{$$$$$$ 13.$ $$$$$return$count;$$$$$ 14.$ }$$$$$$$$$$ 15.$ @end$$$$ [Example instanceCount] count : static interface static interface static implementation 0 59, NSNotificationCenter viewcontroller sendViewcontroller.m SettingViewController.m viewcontroller [cpp] 01.$ M(void)received:(NSNotification$*)notification{$$ 02.$ $$ 03.$ $$$$id$data$=$[notification$object];$$ 04.$ $$$$NSLog(@"received$data:$%@",data);$$ 05.$ }$$ delegate addObserver viewcontroller self 60,Thread EXC_BAD_ACCESS : objc_retain, objc_getProperty [cpp] 01.$ //SettingViewController$ viewcontroller$$ 02.$ SettingViewController$*setting$=$[[SettingViewController$alloc]$init];$$ 03.$ [[NSNotificationCenter$defaultCenter]$addObserver:setting$selector:@selector(received:)$name:@"msetting" 04.$ NSDictionary$*dict$=$[[NSDictionary$alloc]$initWithObjectsAndKeys:@"user",@"type",$nil];$$ 05.$ $$ 06.$ [[NSNotificationCenter$defaultCenter]$postNotificationName:@"msetting"$object:dict];$$ 07.$ [self.navigationController$pushViewController:setting$animated:YES];$$ 08.$ $$ 09.$ [setting$release];$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 32 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 release release unarchiver release location 61,MAC bashsvn command not found mac os 10.8 svn Command line tools svn 1. xcode comand+ -->"Download" -->Components: 2. “Command line tools” 3. “svn help” 62,ios MapKit MapView [java] 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 33 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 iphone 63, [objc] 01.$ M(void)$doDesc{$$ 02.$ $$ 03.$ $$$$$$ 04.$ $$$$int$list[12]$=${12,42,21,45,6,13,89,23,48,74,3,32};$$ 05.$ $$$$$$ 06.$ $$ 07.$ $$$$for$(int$i=0;$i<=11;$i++)${$$ 08.$ $$$$$$$$$ 09.$ $$$$$$$$$$ 10.$ $$$$$$$$$$ 11.$ $$$$$$$$for$(int$j=11;$j>i;$jMM)${$$ 12.$ $$$$$$$$$$$$$$ 13.$ $$$$$$$$$$$$// $$ 14.$ //$$$$$$$$$$$$if$(list[j]>list[jM1])${$$ 15.$ //$$$$$$$$$$$$$$$$int$temp$=list[j];$$ 16.$ //$$$$$$$$$$$$$$$$list[j]$=$list[jM1];$$ 17.$ //$$$$$$$$$$$$$$$$list[jM1]$=$temp;$$ 18.$ //$$$$$$$$$$$$$$$$$$ 19.$ //$$$$$$$$$$$$}$$ 20.$ $$$$$$$$$$$$// $$ 21.$ $$$$$$$$$$$$$$ 22.$ $$$$$$$$$$$$if$(list[j]$rightDegrees)${$//$Int'l$Date$Line$in$View$$ 06.$ leftDegrees$=$M180.0$M$leftDegrees;$$ 07.$ if$(coords.longitude$>$0)$//$coords$to$West$of$Date$Line$$ 08.$ coords.longitude$=$M180.0$M$coords.longitude;$$ 09.$ }$$ 10.$ If$(leftDegrees$<=$coords.longitude$&&$coords.longitude$<=$rightDegrees$&&$bottomDegrees$<=$coords.latitude$&&$coords.latitude$<=$topDegrees)${$$ 11.$ //$ $$ 12.$ }$$ 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 34 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 ios initialization IOS LMAMapKit (directory not found for option) Safari Flash 9 daojiao_one 2014-12-14 21:36 8 ocean9914 2014-12-08 21:03 7 hjqiaho 2014-11-17 10:58 6 voisvous 2014-10-29 15:44 ~ 5 zhuzhipengai 2014-08-14 23:46 4 yuanyuandachao 2014-07-10 18:50 3 bluecountry 2014-06-24 17:10 NSDateFormatter setFormat :@"yyyy-MM-dd" "HH:mm" “HH-mm” ios7 Re: Never-say-Never 2014-07-11 18:34 bluecountry ... java dateformat 2 MT_Hu-Struggle 2014-06-05 20:52 .... , 1 2013-09-22 00:18 , [ ] [ ] * CSDN 14-12-31 上午 10:56ios开发学习笔记(这⾥⼀定有你想要的东⻄,全部免费 - 其实并不难 ,是你太悲观 - 博客频道 - CSDN.NET 第 35 ⻚(共 35 ⻚)http://blog.csdn.net/mad1989/article/details/7972612 Hadoop AWS Java Android iOS Swift Docker OpenStack VPN Spark ERP IE10 Eclipse CRM JavaScript Ubuntu NFC WAP jQuery BI HTML5 Spring Apache .NET API HTML SDK IIS Fedora XML LBS Unity Splashtop UML components Windows Mobile Rails QEMU KDE Cassandra CloudStack FTC coremail OPhone CouchBase iOS6 Rackspace Web App SpringSide Maemo Compuware aptech Perl Tornado Ruby Hibernate ThinkPHP HBase Pure Solr Angular Cloud Foundry Redis Scala Django Bootstrap | | | | | | | | | webmaster@csdn.net 400-600-2320 | | ICP 070598 | Copyright © 1999-2014, CSDN.NET, All Rights Reserved
还剩34页未读

继续阅读

下载pdf到电脑,查找使用更方便

pdf的实际排版效果,会与网站的显示效果略有不同!!

需要 3 金币 [ 分享pdf获得金币 ] 3 人已下载

下载pdf

pdf贡献者

539785998

贡献于2015-01-09

下载需要 3 金币 [金币充值 ]
亲,您也可以通过 分享原创pdf 来获得金币奖励!
下载pdf