ios tableview怎么重用头部
1个回答
展开全部
实现起来有很多方法,如果表的行数是动态控制的直接删除**源中相应的**就能删除行,最后删除编辑的行。
方法如下:
(NSString *)xmlFile {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]:CHATSFILE_NAME]];
2 1;
NSString *documentsDirectory = [paths objectAtIndex;记录当前节点的值
[currentChatInfo removeAllObjects]:YES],首先获取文件目录
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory:[NSURLfileURLWithPath:[documentsDirectory stringByAppendingPathComponent, YES):nil waitUntilDone;开始XML解析
chatLogParser release];节点对象
[chatLogParser parse];
chatFile = [[NSString alloc] initWithString;/:xmlFile]];
[chatLogParser setDelegate,加载文件
- (void) loadThread;///
[currentString setString:@"
[self performSelectorOnMainThread;":0];/
NSXMLParser *chatLogParser = [[NSXMLParser alloc] initWithContentsOfURL, NSUserDomainMask:@selector(finshLoadFile) withObject;/创建线程
[pool release]:self];/];/
方法如下:
(NSString *)xmlFile {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]:CHATSFILE_NAME]];
2 1;
NSString *documentsDirectory = [paths objectAtIndex;记录当前节点的值
[currentChatInfo removeAllObjects]:YES],首先获取文件目录
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory:[NSURLfileURLWithPath:[documentsDirectory stringByAppendingPathComponent, YES):nil waitUntilDone;开始XML解析
chatLogParser release];节点对象
[chatLogParser parse];
chatFile = [[NSString alloc] initWithString;/:xmlFile]];
[chatLogParser setDelegate,加载文件
- (void) loadThread;///
[currentString setString:@"
[self performSelectorOnMainThread;":0];/
NSXMLParser *chatLogParser = [[NSXMLParser alloc] initWithContentsOfURL, NSUserDomainMask:@selector(finshLoadFile) withObject;/创建线程
[pool release]:self];/];/
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询