Skip to content

Commit

Permalink
Merge pull request #9066 from vijaysingh-axway/TIMOB-16622
Browse files Browse the repository at this point in the history
[TIMOB-16622] iOS:Replace UISearchDisplayController with UISearchController
  • Loading branch information
ewieberappc committed Aug 8, 2017
2 parents 33be3a8 + 4396c00 commit ce8b417
Show file tree
Hide file tree
Showing 13 changed files with 411 additions and 175 deletions.
15 changes: 13 additions & 2 deletions apidoc/Titanium/UI/ListView.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,18 @@ properties:
type: Dictionary
since: "5.2.0"
osver: {ios: {min: "7.0"}}
platforms: [iphone, ipad]

- name: dimBackgroundForSearch
summary: A Boolean indicating whether the underlying content is dimmed during a search.
description: |
If you do not want to show the dimmed background when clicking on the search bar,
set this property `false` during creation.
type: Boolean
default: true
since: 6.2.0
platforms: [iphone, ipad]
availability: creation

- name: resultsBackgroundColor
summary: The background color of the search results (iOS-only).
Expand All @@ -1083,7 +1094,7 @@ properties:
since: 6.1.0
platforms: [iphone, ipad]
availability: creation

- name: resultsSeparatorStyle
summary: The separator style of the search results (iOS-only).
type: Number
Expand All @@ -1104,7 +1115,7 @@ properties:
since: 6.1.0
platforms: [iphone, ipad]
availability: creation

methods:
- name: scrollToItem
summary: Scrolls to a specific item.
Expand Down
11 changes: 11 additions & 0 deletions apidoc/Titanium/UI/TableView.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,17 @@ properties:
type: [Titanium.UI.SearchBar, Titanium.UI.Android.SearchView]
platforms: [android, iphone, ipad]

- name: dimBackgroundForSearch
summary: A Boolean indicating whether the underlying content is dimmed during a search.
description: |
If you do not want to show the dimmed background when clicking on the search bar,
set this property `false` during creation.
type: Boolean
default: true
since: 6.2.0
platforms: [iphone, ipad]
availability: creation

- name: searchAsChild
summary: Determines whether the [SearchBar](Titanium.UI.SearchBar) or [SearchView](Titanium.UI.Android.SearchView) appears as part of the TableView.
Expand Down
4 changes: 2 additions & 2 deletions iphone/Classes/TiUIListView.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

#if IS_XCODE_8
// Add support for iOS 10 table-view prefetching
@interface TiUIListView : TiUIView <UITableViewDelegate, UITableViewDataSource, UITableViewDataSourcePrefetching, UIScrollViewDelegate, UIGestureRecognizerDelegate, UISearchBarDelegate, UISearchDisplayDelegate, TiScrolling, TiProxyObserver, TiUIListViewDelegateView>
@interface TiUIListView : TiUIView <UITableViewDelegate, UITableViewDataSource, UITableViewDataSourcePrefetching, UIScrollViewDelegate, UIGestureRecognizerDelegate, UISearchBarDelegate,UISearchResultsUpdating, UISearchControllerDelegate, TiScrolling, TiProxyObserver, TiUIListViewDelegateView>
#else
@interface TiUIListView : TiUIView <UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate, UIGestureRecognizerDelegate, UISearchBarDelegate, UISearchDisplayDelegate, TiScrolling, TiProxyObserver, TiUIListViewDelegateView>
@interface TiUIListView : TiUIView <UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate, UIGestureRecognizerDelegate, UISearchBarDelegate, UISearchResultsUpdating, UISearchControllerDelegate, TiScrolling, TiProxyObserver, TiUIListViewDelegateView>
#endif

#pragma mark - Private APIs
Expand Down

0 comments on commit ce8b417

Please sign in to comment.