Iam 어려움을 겪고 있는 브리타 레비예프 입력되었는지 어레이로부터 및 드롭다운하십시오 목록. 만약 내가 드롭다운하십시오 행을 선택할 수 있는 새로운 가치와 타바레비예프 리로드하려면 나열하십시오 어레이입니다 삽입됨 것이라고 한다. 이 방법을 통해 새로운 어레이입니다 애니메이션할 타바레비예프 컨텐트에는? 미리 감사드립니다.
애니메이션 같은 행 하나씩 보여주고 싶다. 이 방법을 찾았다
- (void)reloadRowsAtIndexPaths:(NSArray )indexPaths withRowAnimation:(UITableViewRowAnimation)animation {
NSIndexPath rowToReload = [NSIndexPath indexPathForRow:[names count] inSection:0];
NSArray* rowsToReload = [NSArray arrayWithObjects:rowToReload, nil];
[tableDetails reloadRowsAtIndexPaths:rowsToReload withRowAnimation:UITableViewRowAnimationNone];
}
정답 추가할 수 있는 모든 , 확인표시를 리로드하려면 단면에는 브리타 레비예프 '' 다음 작업을 수행해야 합니다.
NSRange range = NSMakeRange(0, [self numberOfSectionsInTableView:self.tableView]);
NSIndexSet *sections = [NSIndexSet indexSetWithIndexesInRange:range];
[self.tableView reloadSections:sections withRowAnimation:UITableViewRowAnimationAutomatic];
let range = NSMakeRange(0, self.tableView.numberOfSections)
let sections = NSIndexSet(indexesIn: range)
self.tableView.reloadSections(sections as IndexSet, with: .automatic)
이렇게 하면 리로드하려면 테이블에서 모든 것을 볼 수 있는 애니메이션. Like a 보스.
UIView.transition(with: myTableView, duration: 1.0, options: .transitionCrossDissolve, animations: {self.myTableView.reloadData()}, completion: nil)
UIView.transitionWithView(myTableView, duration: 1.0, options: .TransitionCrossDissolve, animations: {self.myTableView.reloadData()}, completion: nil)
이와 함께 갔던 스위프트
먼저 기대할 수 있는 것을 알 수 있는 타바레비예프 <;;; /code> 업데이트뿐 code> beginUpdates<. 다음 업데이트 관련 부분에 (타바레비예프 단면의 단면 그럼 하나뿐인 그냥 지나칠 수 없는 경우). # 39 의 here& 지정할 수 있는 애니메이션 - 장난치지 redhat. 운영까지도 보이는 효과를 얻을 수 있습니다. 그 후 전화하시기 < code> endUpdates< /code>;;; 타바레비예프 를. 이 브리타 레비예브로이니마션 위한 메리 페데프 지정합니다.
typedef enum {
UITableViewRowAnimationFade,
UITableViewRowAnimationRight,
UITableViewRowAnimationLeft,
UITableViewRowAnimationTop,
UITableViewRowAnimationBottom,
UITableViewRowAnimationNone,
UITableViewRowAnimationMiddle,
UITableViewRowAnimationAutomatic = 100
} UITableViewRowAnimation;
주위에 놀이를하고 어느쪽이야 운영까지도 볼 수 있습니다. 심지어 < 선택, code> UITableViewRowAnimationNone< /code>;; 가끔 좋은 효과를 가질 수 있습니다. 테이블 업데이트 코드가 다음과 같습니다.
[self.tableView beginUpdates];
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationNone];
[self.tableView endUpdates];
'레로이드체티언스 비트로이니마션' 기능을 사용할 수 있습니다. 확인란 [브리타 레비예프 클래스용 참조] (http://developer.apple.com/library/ios/ # documentation/uikit/reference/UITableView_Class/Reference/Reference.html).
이것 [레로이 카다타 애니메이션과] (https://stackoverflow.com/questions/419472/have-a-reloaddata-for-a-uitableview-animate-when-changing) 가 이미 답변됨 질문이요.
나도 날잡아 '는' 테이블 '이 저의 애니메이션된 준대칭 애니메이션' 을 (를)
이 코드는 원하는 위치에 //put 너회의 리로드하려면 테이블 뷰
dispatch_async(dispatch_get_main_queue(), ^{
[UIView transitionWithView:<"TableName">
duration:0.1f
options:UIViewAnimationOptionTransitionFlipFromRight
animations:^(void) {
[<"TableName"> reloadData];
} completion:NULL];
});
아래 방법을 애니메이션용 타바레비예프 의해 지원됩니다.
- (void)reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation NS_AVAILABLE_IOS(3_0);
사용법:
//Reload tableView with animation
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationRight];
서로 다른 유형의 애니메이션 사용할 수 있습니다.
typedef NS_ENUM(NSInteger, UITableViewRowAnimation) {
UITableViewRowAnimationFade,
UITableViewRowAnimationRight, // slide in from right (or out to right)
UITableViewRowAnimationLeft,
UITableViewRowAnimationTop,
UITableViewRowAnimationBottom,
UITableViewRowAnimationNone, // available in iOS 3.0
UITableViewRowAnimationMiddle, // available in iOS 3.2. attempts to keep cell centered in the space it will/did occupy
UITableViewRowAnimationAutomatic = 100 // available in iOS 5.0. chooses an appropriate animation style for you };
ᄋ "이번 지정값이 도와주워요!