mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
add menu transition animations
This commit is contained in:
parent
231a5ea250
commit
2b3ff002bd
@ -630,7 +630,30 @@ didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
|||||||
- (void)reloadData
|
- (void)reloadData
|
||||||
{
|
{
|
||||||
[self willReloadData];
|
[self willReloadData];
|
||||||
[[self tableView] reloadData];
|
|
||||||
|
// Here are two options:
|
||||||
|
|
||||||
|
// Option 1. This is like how setting app works, but not exactly.
|
||||||
|
// There is a typedef for the 'withRowAnimation' that has lots of
|
||||||
|
// options, just Google UITableViewRowAnimation
|
||||||
|
|
||||||
|
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0]
|
||||||
|
withRowAnimation:UITableViewRowAnimationAutomatic];
|
||||||
|
|
||||||
|
// Optione 2. This is a "bigger" transistion, but doesn't look as
|
||||||
|
// much like Settings. It has more options. Just Google
|
||||||
|
// UIViewAnimationOptionTransition
|
||||||
|
|
||||||
|
/*
|
||||||
|
[UIView transitionWithView:self.tableView
|
||||||
|
duration:0.35f
|
||||||
|
options:UIViewAnimationOptionTransitionCurlUp
|
||||||
|
animations:^(void)
|
||||||
|
{
|
||||||
|
[self.tableView reloadData];
|
||||||
|
}
|
||||||
|
completion: nil];
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user