01 2013 档案

摘要:.h#import <UIKit/UIKit.h>#import <CoreLocation/CoreLocation.h>#import <MapKit/MapKit.h>@interface SecondViewController : UIViewController<CLLocationManagerDelegate,MKMapViewDelegate,NSURLConnectionDataDelegate,NSURLConnectionDelegate>{ IBOutlet UIView *mapBottomView; IBOutlet 阅读全文
posted @ 2013-01-31 20:40 言程序 阅读(8453) 评论(1) 推荐(1)
摘要:1:相机&从相册中获取图片.h记得导入<UIImagePickerControllerDelegate,UINavigationControllerDelegate,MFMailComposeViewControllerDelegate>.m://// ViewController.m// LessonHardWare//// Created by cyy on 13-1-29.// Copyright (c) 2013年 LanOuKeJi. All rights reserved.//#import "ViewController.h"@interf 阅读全文
posted @ 2013-01-30 20:31 言程序 阅读(807) 评论(0) 推荐(0)
摘要:set方法:-(void)setName:(NSString *)name{ if (_name != name) { [_name release]; [name retain]; _name = name; }}凡是.h里面的带星号变量或者属性的都要在dealloc中release一下 [_name release];这样释放 或者self.xxx = nil;这种更好get方法:-(UILabel *)titleLable{ if (_titleLable == nil) { _titleLable = [[UILabelalloc]init]; ... 阅读全文
posted @ 2013-01-09 13:32 言程序 阅读(17567) 评论(0) 推荐(0)