nicklockwood / SwipeView

SwipeView is a class designed to simplify the implementation of horizontal, paged scrolling views on iOS. It is based on a UIScrollView, but adds convenient functionality such as a UITableView-style dataSource/delegate interface for loading views dynamically, and efficient view loading, unloading and recycling.
Other
2.65k stars 413 forks source link

Animate subview from press button #184

Open Narcissusz opened 8 years ago

Narcissusz commented 8 years ago

Example error

When i click arrowdown button in view (index 0) call function pressedButton: but self.SWdescriptionView animation in view(index1),view(index2) (not current)

Before click arrowdown screen shot 2015-10-19 at 11 04 24 am

After click arrowdown screen shot 2015-10-19 at 11 04 15 am

//configure swipe view _followView.alignment = SwipeViewAlignmentEdge; _followView.pagingEnabled = NO; _followView.itemsPerPage = 1; _followView.truncateFinalPage = YES; _followView.defersItemViewLoading = NO;

}

// NSString imgUrl = [NSString stringWithFormat:@"http://cms.tvbento.com/uploads/contents/%@/2x_%@",data.content_id,data.content_cover_program]; NSURL url = [NSURL URLWithString:imgUrl];

[self.SWimgPrograms sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"placeholder.jpg"] options:SDWebImageRefreshCached];

self.SWCategoryView.backgroundColor = [UIColor colorWithHex:data.category_color_code];

[self.SWlblProgramsName setText:data.content_title];
[self.SWlblCategoryName setText:data.category_name];

[self.SWlblDescription setText:[self stringByStrippingHTML:data.content_description]];

return view;

}

Please advice for fix issue