사용자가 테이블보기에서 책 제목을 클릭 할 때마다 레이블 텍스트를 해제하려고 시도하지만 detailViewController 레이블 (titleLabel)을 변경해야하지만 동일한 책 제목을 계속 표시해야합니다.iPhone 릴리스 레이블 텍스트
//
// BookDetailViewController.m
#import "BookDetailViewController.h"
#import "Book.h"
@implementation BookDetailViewController
@synthesize aBook, titleLabel;
// Implement viewDidLoad to do additional setup after loading the view.
- (void)viewDidLoad {
[super viewDidLoad];
[self bookDes];
self.title = @"Book Detail";
}
-(void)bookDes {
[self.titleLabel setText:nil];
[self.titleLabel setText:aBook.title];
}
- (void)dealloc {
[aBook release];
[titleLabel release];
[super dealloc];
}
@end
당신이 컨트롤러를 생성하는 코드를 게시 할 수 있습니다? – deanWombourne
언제 aBook 개체를 설정합니까? –
코드는 http://www.iphonesdkarticles.com/2008/11/parsing-xml-files.html에서 제공됩니다. 그러나 TableView에 표시하지 않으려 고 detailView를 변경했습니다. – RussellHarrower