大家好,大家好,我的目標C新的,我需要幫助,我從我的xml
文件閱讀,我想將我NSString
到bool
和NSString
到date
和 Nsstring
到long
轉換的NSString
NSArray *names = [partyMember elementsForName:@"price"];
if (names.count > 0) {
GDataXMLElement *firstName = (GDataXMLElement *) [names objectAtIndex:0];
price = firstName.stringValue;
} else continue;
NSArray *names1 = [partyMember elementsForName:@"date"];
if (names1.count > 0) {
GDataXMLElement *firstName1 = (GDataXMLElement *) [names1 objectAtIndex:0];
date = firstName1.stringValue;
NSArray *names1 = [partyMember elementsForName:@"test"];
if (names1.count > 0) {
GDataXMLElement *firstName1 = (GDataXMLElement *) [names1 objectAtIndex:0];
test = firstName1.stringValue;
NSString * string = @「2011-07-05T10:26:13.91 + 02:00」;嗨,我做格式這個strind –