//
Viewcontroller.m
NSBundle detailed
//
Created by Big Huan on 16/1/20.
COPYRIGHT©2016 year BJSXT. All rights reserved.
//
#import "ViewController.h"
@interface Viewcontroller ()
@end
@implementation Viewcontroller
-(void) Viewdidload {
[Super Viewdidload];
Bundle, Catalogue
NSString * string = [NSBundle mainbundle].bundlepath;
NSLog (@ "%@", string);
Resource: File name
OfType: filename suffix
Directories under the Indirectory:bundle
NSString * Path = [[NSBundle mainbundle] pathforresource:@ "test" oftype:@ "plist"];
NSString * path2 = [[NSBundle mainbundle] pathforresource:@ "test" oftype:@ "plist" indirectory:@ "image"];
Nsarray * array = [Nsarray arraywithcontentsoffile:path2];
NSLog (@ "%@", array);
}
-(void) didreceivememorywarning {
[Super didreceivememorywarning];
Dispose of any resources the can be recreated.
}
@end
/***************************************************/
iOS Learning-uibundle