Comments (9)
yes it crashed!
from epcontactspicker.
bug confirmed.
from epcontactspicker.
if let contactsForSection = orderedContacts[sortedContactKeys[indexPath.section]] {
contact = EPContact(contact: contactsForSection[indexPath.row]) // crash is here
}
For example I have 6 contacts, but 2 of them in 1 section. When tap on cancel on search bar it recognizing as 5 contacts and crashing with error out of index
There is no issue when it's 1 section
from epcontactspicker.
I changede in EPContactPicker
public func searchBarCancelButtonClicked(searchBar: UISearchBar) {
searchBar.text = ""
dispatch_async(dispatch_get_main_queue(), {
//self.tableView.reloadData()
self.reloadContacts()
})
}
from epcontactspicker.
I tried it also it's still crash
from epcontactspicker.
I mark the line on func searchBarCancelButtonClicked
// searchBar.text = ""
it would not crash.
from epcontactspicker.
This not related to crash. Crash going from section & cell indexes
from epcontactspicker.
Because searchBar.text = "" will trigger func updateSearchResultsForSearchController ,
and it will call self.tableView.reloadData() , then trigger numberOfSectionsInTableView ,
in this case, resultSearchController.active is true , so section always return 1.
from epcontactspicker.
That didn't help anyway. It still crash
from epcontactspicker.
Related Issues (20)
- ViewController is not dismissed if search used HOT 1
- Change text «No emails available!!»
- Swift 3.0 support? HOT 8
- The word "Optional" appears before every contact name HOT 4
- Swift 2.3 tag HOT 3
- Doesn't show contacts with custom labels HOT 7
- Using the version before the swift 3 one HOT 1
- Contact Selection when Searching
- Emoji's crash the app HOT 6
- Search
- Possible to show contact detail view like the Contacts.app?
- Carthage
- Customizable Contacts Permission Message & Taking User to Settings HOT 1
- How can i send the table view value to another view controller when i try throw they give exception
- Ability to import from Groups HOT 1
- Upgrade to it to swift 4.2
- Terminating app due to uncaught exception 'CNPropertyNotFetchedException', reason: 'A property was not requested when contact was fetched.' HOT 1
- Issue with alphabetical ordering
- XCode 10.2.1 Swift 4.2 Getting following error HOT 1
- How to convert EPContact object into CNContact?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epcontactspicker.