Hello
I'm beginner of X-code, now i'm trying to load the data from plist file into navigator but it didn't work well. When application is run, I can see my data from plist but it's not too long because the app. will close itself (I could not slide up and down to fast too ). I don't know why and I tried to release the array but it didn't work, I couldn't access to see the data. If somebody knows how to solve this o, please tell me. Many thanks
Here is my code
NSString *path = [[NSBundle mainBundle]pathForResource
"statedictionary1" ofType
"plist"];
NSDictionary *dict = [[NSDictionary alloc]initWithContentsOfFileath];
self.keys = dict;
[dict release];
NSArray *array = [[keys allKeys]sortedArrayUsingSelector
selector(compare];
self.list = array;
I couldn't release the array because my app will get crashed. I don't know why
I'm beginner of X-code, now i'm trying to load the data from plist file into navigator but it didn't work well. When application is run, I can see my data from plist but it's not too long because the app. will close itself (I could not slide up and down to fast too ). I don't know why and I tried to release the array but it didn't work, I couldn't access to see the data. If somebody knows how to solve this o, please tell me. Many thanks
Here is my code
NSString *path = [[NSBundle mainBundle]pathForResource
NSDictionary *dict = [[NSDictionary alloc]initWithContentsOfFileath];
self.keys = dict;
[dict release];
NSArray *array = [[keys allKeys]sortedArrayUsingSelector
self.list = array;
I couldn't release the array because my app will get crashed. I don't know why