2
일부 서식있는 텍스트를 사용자 정의보기로 렌더링하려면 CoreTextView을 사용하고 있습니다. 나는 그것이 작동하는 법을 배우려고 노력하고있다. (그리고 나는 iOS의 초심자이다.) 그래서 제공된 예제를 가지고 놀고 있었고 (디폴트로 스크롤하지는 않는다) 컨텐츠를위한 컨테이너 사각형을 그려 냈다. (지금 그것을 강조하기 위해 빨간색 bg에). 제 문제는 스크롤 할 수있게 만드는 방법을 모르겠다는 것입니다.CoreTextView 스크롤 가능
CGRect screenRect = [[UIScreen mainScreen] bounds];
CGFloat screenWidth = screenRect.size.width;
CGFloat screenHeight = screenRect.size.height;
int widthInt = (int)roundf(screenWidth)-20;
int heightInt= (int)roundf(screenHeight)-60;
m_coreText=[[CoreTextView alloc] initWithFrame:CGRectMake(10, 50, widthInt, heightInt)];
m_coreText.autoresizingMask=UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
m_coreText.backgroundColor=[UIColor redColor];
m_coreText.contentInset=UIEdgeInsetsMake(10, 10, 10, 10);