편집 기록

편집 기록
  • 프로필 알 수 없는 사용자님의 편집
    날짜2018.05.14

    ios11버전에서 UITextView 회전 버그 문제


    안녕하세요.

    이번에 IOS11버전부터 UITextView 텍스트를 크게 하고 회전을 해버리면 이미지처럼 흰줄이 생겨 버립니다.

    혹시 이와 비슷한 경험이 있으신분 있으시면 답변 달아주시면 문제 해결에 많은 도움이 될꺼 같습니다.

    ios11이전 버전들은 문제 없이 잘 됩니다 ㅜㅜ

    좋은 하루 되시기 바랍니다.

    이미지

    -(IBAction)actionTest:(id)sender{
    
    
    
        UIView *trueView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 900, 1070)];
    
        [trueView setBackgroundColor:[UIColor clearColor]];
    
        trueView.clipsToBounds =YES;
    
    
    
    
    
        UITextView *textView  = [[UITextView alloc]init];
    
        [textView setBackgroundColor:[UIColor yellowColor]];
    
        textView.text = @"test";
    
    
    
        textView.font = [UIFont systemFontOfSize:250];
    
        [textView setFrame:CGRectMake(300,300, 800, 600)];
    
        textView.transform = CGAffineTransformRotate(textView.transform,-0.8);
    
    
    
        [trueView addSubview:textView];
    
    
    
        UIGraphicsBeginImageContextWithOptions(CGSizeMake(900, 1070),NO,1);
    
        CGContextRef trueContext = UIGraphicsGetCurrentContext();
    
        CGContextTranslateCTM(trueContext,0, 0);
    
        [trueView.layer renderInContext:UIGraphicsGetCurrentContext()];
    
        UIImage *originalImage = UIGraphicsGetImageFromCurrentImageContext();
    
        UIGraphicsEndImageContext();
    
    
        self.iv.image  = originalImage;
    
    
    
    }
    
  • 프로필 kkokkokim14님의 편집
    날짜2018.05.09

    ios11버전에서 UITextView 회전 버그 문제


    안녕하세요.

    이번에 IOS11버전부터 UITextView 텍스트를 크게 하고 회전을 해버리면 이미지처럼 흰줄이 생겨 버립니다.

    혹시 이와 비슷한 경험이 있으신분 있으시면 답변 달아주시면 문제 해결에 많은 도움이 될꺼 같습니다.

    ios11이전 버전들은 문제 없이 잘 됩니다 ㅜㅜ

    좋은 하루 되시기 바랍니다.

    이미지

    -(IBAction)actionTest:(id)sender{
    
    
    
        UIView *trueView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 900, 1070)];
    
        [trueView setBackgroundColor:[UIColor clearColor]];
    
        trueView.clipsToBounds =YES;
    
    
    
    
    
        UITextView *textView  = [[UITextView alloc]init];
    
        [textView setBackgroundColor:[UIColor yellowColor]];
    
        textView.text = @"test";
    
    
    
        textView.font = [UIFont systemFontOfSize:250];
    
        [textView setFrame:CGRectMake(300,300, 800, 600)];
    
        textView.transform = CGAffineTransformRotate(textView.transform,-0.8);
    
    
    
        [trueView addSubview:textView];
    
    
    
        UIGraphicsBeginImageContextWithOptions(CGSizeMake(900, 1070),NO,1);
    
        CGContextRef trueContext = UIGraphicsGetCurrentContext();
    
        CGContextTranslateCTM(trueContext,0, 0);
    
        [trueView.layer renderInContext:UIGraphicsGetCurrentContext()];
    
        UIImage *originalImage = UIGraphicsGetImageFromCurrentImageContext();
    
        UIGraphicsEndImageContext();
    
    
        self.iv.image  = originalImage;
    
    
    
    }