Views 45441 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
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
No. Category Subject Author Date Views
677 Develop [c] 이진트리(binary tree)의 특성 file hooni 2003.04.23 9598
676 Develop [js] Closure를 이용해 캡슐화.. hooni 2013.12.16 9594
675 Develop [c++] 마방진 소스코드 file hooni 2013.04.23 9558
674 Develop [c++] 링크리스트(linked list) 클래스(스택,큐) file hooni 2003.04.23 9553
673 Develop [c] 파일(File)의 연결과 연결 해제 (link, unlink, chown) hooni 2013.04.23 9543
672 Develop [c] 팩토리얼.. - 재귀함수 hooni 2003.04.23 9500
671 Develop [java] 거스름돈 계산.. swing 사용 file hooni 2013.04.23 9442
670 Develop [java] 스윙(swing)버튼 테스트 ㅋㅋ file hooni 2013.04.23 9421
669 Develop [js] jQuery 셀랙터(selector) 요약 hooni 2013.12.17 9418
668 Etc [english] 영어공부 혼자 하기, 인터넷으로 영어공부하기 추천사이트 20선 file hooni 2013.11.25 9408
667 Develop [c] 공용체를 이용해 MSB를 LSB로 변환 file hooni 2013.04.23 9374
666 Develop [c] 다중연결 서버 만들기 #2 - select() 사용 file hooni 2013.04.23 9361
665 Develop [java] Sieve of Eratosthenes (에라토스테네스의 체) hooni 2013.04.23 9337
664 System/OS [linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP) file hooni 2017.12.11 9323
663 Develop [c++] MFC로 만든 디렉토리/파일 파인더 file hooni 2013.04.23 9323
662 Develop [c++] 더블 링크리스트(linked list) 학습용 초간단 단어장 file hooni 2003.04.23 9323
Board Pagination Prev 1 ... 30 31 32 33 34 ... 74 Next
/ 74