YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容!

iOS-UI-XML数据解析-SAX方法





//
// ViewController.m
// XML解析
//
// Created by YIem on 16/2/29.
// Copyright © 2016年 YIem. All rights reserved.
//

import "ViewController.h"

import "Student.h"

@interface ViewController ()<NSXMLParserDelegate>
@property (nonatomic, retain) NSMutableArray *stuArr;
@property (nonatomic, copy) NSString *elementNameStr;
@end

@implementation ViewController

// 方法

@end



//
// Student.h
// XML解析
//
// Created by YIem on 16/2/29.
// Copyright © 2016年 YIem. All rights reserved.
//

import <Foundation/Foundation.h>

@interface Student : NSObject
@property (nonatomic, copy) NSString *number;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *sex;
@property (nonatomic, copy) NSString *phone;
@end


//
// Student.m
// XML解析
//
// Created by YIem on 16/2/29.
// Copyright © 2016年 YIem. All rights reserved.
//

import "Student.h"

@implementation Student

@end

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »