ios 消息传递 内部调用

来源:互联网 发布:土石方调配软件 编辑:程序博客网 时间:2024/06/03 15:02

http://www.cnblogs.com/buro79xxd/archive/2012/04/10/2440074.html  这篇文章写的很详细  我参考这个学习的


NSString *plistPath = [self performSelector:@selector(getPlistPath)];




//获得plist路径-(NSString*)getPlistPath{    //沙盒中的文件路径    NSArray *storeFilePath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);    NSString *doucumentsDirectiory = [storeFilePath objectAtIndex:0];    //NSLog(@"---------------%@",storeFilePath);    NSString *plistPath =[doucumentsDirectiory stringByAppendingPathComponent:@"carlist.plist"];       //根据需要更改文件名    return plistPath; //返回公共文档文件夹下 plist文件位置}


原创粉丝点击