Contents

조회 수 45585 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
597 Develop [php] 마시마로 캐릭터 방명록 file hooni 2003.04.23 8272
596 Develop [c] 문자열 정렬 함수 qsort() hooni 2003.04.23 8274
595 Develop [c] selec()를 이용한 입출력 다중화 file hooni 2013.04.23 8274
594 Develop [c++] 현승이가 준 메신저 소스.. ㅋㅋ file hooni 2013.04.23 8300
593 Develop [c++] 레지스트리 편집하는 부분..ㅡㅡ; file hooni 2013.04.23 8307
592 Develop [c] 이진트리(binary tree)의 운행.. hooni 2003.04.23 8310
591 Develop [swift] NotificationCenter 간단 예제 file hooni 2021.01.27 8345
590 Develop [js] selectbox 선택 후 input 박스에 적용 hooni 2013.04.23 8348
589 Develop [js] 쿠키(cookie)에 대한 설명과 예제.. hooni 2003.04.23 8351
588 Develop [c] 암호 알고리즘 소스.. file hooni 2013.04.23 8353
587 Develop [c] 콘솔에서 패스워드 입력시 문자 보이지 않게 하는 코드 file hooni 2013.04.23 8359
586 Develop [java] 채팅 프로그램.. swing 사용.. file hooni 2013.04.23 8371
Board Pagination Prev 1 ... 44 45 46 47 48 49 50 51 52 53 ... 98 Next
/ 98