저는 iOS를 처음 사용했기 때문에 매우 간단합니다. 중요한 점 - 하위 뷰를 추가하지 않고 도면을 사용하고 싶습니다. 그리고 공공의 방법으로해야합니다. 과 같이 그것을 시도 :UITableView 내부에 텍스트 그리기 - 텍스트가 표시되지 않습니다.
@implementation TripTableViewCell2
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
}
return self;
}
- (void)awakeFromNib
{
// Initialization code
}
- (void)updateWithTrip:(Trip*)trip
{
NSDictionary *attributes = @{NSFontAttributeName: [UIFont systemFontOfSize:10.0f],
NSForegroundColorAttributeName: UIColorFromRGB(0x28cdfb)};
CGSize textSize = [trip.tripId sizeWithAttributes:attributes];
CGPoint textPoint = CGPointMake(10.0f, 10.0f);
[trip.tripId drawAtPoint:textPoint withAttributes:attributes];
}
나는 또한이보기 안에 그려 아무것도 닦아 어떤 한 줄 명령이 .. 내가 그리는하지만 확실하지 않은 상황을 설정 같은 간단한 무언가를 그리워 같은데요?