Contents

조회 수 45455 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
iconImages 배열과 charImages 배열을 합침
샘플코드 설명~
배열 앞/뒤 순서는 넌스에 따라 랜덤하게 적용하고 애니메이션 적용까지..

NSArray *iconImages = [NSArray arrayWithObjects:
    [UIImage imageNamed:@"00_splash_loding_icon_01"],
    [UIImage imageNamed:@"00_splash_loding_icon_02"],
    [UIImage imageNamed:@"00_splash_loding_icon_03"],
    [UIImage imageNamed:@"00_splash_loding_icon_04"],
    [UIImage imageNamed:@"00_splash_loding_icon_05"],
    [UIImage imageNamed:@"00_splash_loding_icon_06"],
    [UIImage imageNamed:@"00_splash_loding_icon_07"],
    [UIImage imageNamed:@"00_splash_loding_icon_08"],nil];

NSArray *charImages = [NSArray arrayWithObjects:
    [UIImage imageNamed:@"00_splash_loding_char_01"],
    [UIImage imageNamed:@"00_splash_loding_char_02"],
    [UIImage imageNamed:@"00_splash_loding_char_03"],
    [UIImage imageNamed:@"00_splash_loding_char_04"],
    [UIImage imageNamed:@"00_splash_loding_char_05"],
    [UIImage imageNamed:@"00_splash_loding_char_06"],nil];

NSArray *animationImages =
    (arc4random()%2 > 0)
     ? [iconImages arrayByAddingObjectsFromArray:charImages]
     : [charImages arrayByAddingObjectsFromArray:iconImages];

loadingActivityIndicator_ =
    [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 24, 24)]; // 34x35

loadingActivityIndicator_.animationDuration = 2.0;
loadingActivityIndicator_.animationRepeatCount = 0;
loadingActivityIndicator_.animationImages = animationImages;
loadingActivityIndicator_.contentMode = UIViewContentModeScaleAspectFit;
[loadingActivityIndicator_ setCenter:activityPt];
[containerView_ addSubview:loadingActivityIndicator_];

//애니메이션 시작
[loadingActivityIndicator_ startAnimating];

//애니메이션 정지
[loadingActivityIndicator_ stopAnimating];


?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
741 Develop [js] 자바스크립트 이벤트 핸들.. hooni 2003.04.23 7908
740 Develop [js] 자바스크립트 메뉴얼 사이트.. ㅋㅋ hooni 2013.04.23 7415
739 Develop [js] 자바스크립트 escape()를 PHP로 받기 hooni 2013.04.23 5991
738 Develop [js] 인터넷 주소(URL) 인코딩 ㅋㅋ hooni 2013.04.23 11355
737 Develop [js] 이벤트 핸들러(Event Handlers) hooni 2003.04.23 6729
736 Develop [js] 이벤트 전파 3단계 hooni 2013.12.18 9966
735 Develop [js] 이미지 사이즈를 동적으로 조절.. hooni 2013.04.23 7476
734 Develop [js] 이미지 미리 로딩하기 hooni 2003.04.23 7008
733 Develop [js] 윤동이가 만든 영어 학습(?) 프로그램 file hooni 2013.04.23 6465
732 Develop [js] 윈도우 시작버튼처럼 나오는 메뉴 file hooni 2013.04.23 6743
731 Develop [js] 웹페이지에서 특정 엘리먼트 드래그, 복사, 컨텍스트메뉴, 키보드 막기 hooni 2013.11.04 30065
730 Develop [js] 여러가지 트리(tree) 모음.. ㅋㅋ file hooni 2013.04.23 7123
Board Pagination Prev 1 ... 32 33 34 35 36 37 38 39 40 41 ... 98 Next
/ 98