当你在iPhone的照片应用程序(或几乎所有其他应用程序中)中点击照片时,我想复制完全相同的didSelect animation/segue,其中照片从单元格本身放大到模态视图控制器,并最小化到任何地方被解雇时属于网格.
我试过谷歌搜索但找不到任何关于此的文章.
iphone objective-c ios uicollectionview uicollectionviewcell
我正在创建一个UISearchViewController,我希望将其放入UISearchBar导航控制器的导航项目中.这是我如何做到没有结果:
self.searchBar = [UISearchBar new];
self.searchBar.showsScopeBar = YES;
self.searchBar.scopeButtonTitles = @[@"Users", @"Hashtags"];
self.searchBar.delegate = self;
self.searchController = [[UISearchDisplayController alloc] initWithSearchBar:self.searchBar contentsController:self];
self.searchController.delegate = self;
self.searchController.searchResultsDataSource = self;
self.searchController.searchResultsDelegate = self;
self.searchController.displaysSearchBarInNavigationBar = YES;
Run Code Online (Sandbox Code Playgroud)
我也尝试过:
self.searchDisplayController.searchBar.searchBarStyle = UISearchBarStyleMinimal;
self.searchDisplayController.searchBar.scopeButtonTitles = @[@"Users", @"Hashtags"];
self.searchDisplayController.searchBar.showsScopeBar = YES;
Run Code Online (Sandbox Code Playgroud)
我错过了什么或做错了吗?
iphone objective-c uisearchbar uisearchdisplaycontroller ios