[iOS 강좌] 오픈API 이용한 날씨 APP 만들기 - 3. UIkit Framework

UIScrollView // 객체 생성 및 초기화 UIScrollView * scrollView = [[ UIScrollView alloc ] init ]; // 프레임 설정 [ scrollView setFrame : CGRectMake ( 0 , 0 , 0 , 0 ,)]; // 백그라운드 컬러 설정 [ scrollView setBackgroundColor :[ UIColor orangeColor ]]; // 컨텐츠 크기 설정 [ scrollView setContentSize : CGSizeMake ( 0 , 0 )]; // 인디케이트 설정 scrollView. showsVerticalScrollIndicator = YES ; // 델리게이트 설정 scrollView. delegate = self ; // 뷰에 추가 [ self . view addSubview :scrollView ]; < UIScrollViewDelegate > // 스크롤 위치 델리케이트 - ( void ) scrollViewDidScroll :( UIScrollView *) scrollView ;   UIView // 객체 생성 및 초기화 UIView * subView = [[ UIView alloc ] init ]; // 프레임 설정 [ subView setFrame : CGRectMake ( 0 , 0 , 0 , 0 )]; // 백그라운드 설정 [ subView setBackgroundColor :[ UIColor redColor ]]; // 레이어 윤곽 [ subView. layer setBorderWidth : 1 ]; // 레이어 윤곽 색상 [ subView. layer setBorderColor :[ UIColor blueColor ]. CGColor ]; // 레이어 모서리