ipraba / epcontactspicker Goto Github PK
View Code? Open in Web Editor NEWContacts picker using new contacts framework by apple
License: MIT License
Contacts picker using new contacts framework by apple
License: MIT License
Attempting to load the view of a view controller while it is deallocating
"Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior (<UISearchController: 0x100817850>)
fatal error: unexpectedly found nil while unwrapping an Optional value"
and then it crashes here:
EPcontact.swift - phoneNumbers.append((phone.stringValue,phoneNumber.label!))
EPcontactpicker.swift- contact = EPContact(contact: contactsForSection[indexPath.row])
Can this be installed via Carthage (for use in an Objective-C app)?
Pull request with that fix: #26
I'm on iOS Simulator and SearchBar does not show up
If the contact has a custom label for its phone number, it does not show this contacts phone number, is there a way to fix this?
Hi,
When there is non-ascii index such as Chinese, the project will be crash.
I fixed this issue on my branch like this
[EPContactsPicker.swift]
line:280
//return EPGlobalConstants.Arrays.alphabets.indexOf(title)!
return sortedContactKeys.indexOf(title)!
Hi, I appreciate your hard work on this control. Would it be possible to display a detail view similar to the Contacts.app?
I don't really want to duplicate this view unless it's unavoidable.
Many thanks
override open func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == kTaskViewControllerSegueIdentifier {
let taskViewController = segue.destination as? Discountpopup
if let indexPath = self.tableView.indexPathForSelectedRow{
if resultSearchController.isActive && resultSearchController.searchBar.text != ""{
let segueData : EPContact
segueData = selectedContacts[indexPath.row]
taskViewController?.contact = segueData
}
else if resultSearchController.isActive == false{
let segueData : CNContact
segueData = filteredContacts[indexPath.row]
taskViewController?.contacts = segueData
}
}
else {
}
}
}
Subscript 'subscript(_:)' requires the types 'String.Index' and 'Int' be equivalent
If you search for a contact and select it there is no way to exit the searching and keep the contact in view. It is hard to tell if Selection is kept, maybe showing Selected users would help. Similar to how EvContactPicker does it.
One solution is do not hide the top navigation when selecting (allowing user to push Done)
Would be very nice if people could use this with cocoapods
search by phone number (searchbar) ?
I need this code for Objective C
first of all library looks very good.
Please upgrade to it to swift 4.2.
Thank You,
Vandit Mehta
Instead of using in an UINavigationController I tried to add it's view to an UIViewController class:
let contactScene = EPContactsPicker(delegate: self, multiSelection: true, subtitleCellType: SubtitleCellValue.Phonenumer)
self.view.addSubview(contactScene.view)
This shown up the EPContactsPicker effectively but when tap on any entry, the entries disappears leaving only grid lines. Am I supposed to add EPContactsPicker in above way, or what I need to do differently?
When I put
let contactPickerScene = EPContactsPicker(delegate: self, multiSelection:true, subtitleCellType: SubtitleCellValue.phoneNumber) let navigationController = UINavigationController(rootViewController: contactPickerScene) self.present(navigationController, animated: true, completion: nil)
I got this
Terminating app due to uncaught exception 'CNPropertyNotFetchedException', reason: 'A property was not requested when contact was fetched.'
How to fix this?
If I use search and click on contact from search ViewController is not dismissed (but delegate didSelectContact
is called). If I try to click on cancel application crashes.
2016-06-30 10:55:17.239 RecCheck[14128:3479311] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: '...A611DD64B6C2/MyApp.app> (loaded)' with name 'EPContactCell''
Please update the podspec to expose the bundle, then update the EPContactsPicker class to load the bundle with the specified key. For more information: https://the-nerd.be/2015/08/07/load-assets-from-bundle-resources-in-cocoapods/
Group support would be great 👍
• Ability to give a custom message when prompting the user for Contacts Access.
• Adding a button to permission alert that will take the user directly to the app's settings to allow for contacts access.
i had been trying for many ways send data on a variable from any ViewController to EPContactPicker file, but it´s been imposible.
thank a lot for any suppport
http://i.imgur.com/Zb0Bmsx.jpg
pod 'EPContactsPicker', :git => 'https://github.com/ipraba/EPContactsPicker'
use_frameworks!
Would be nice if user could select either from a Contacts Group, or the whole Group, rather than selecting individually from All Contacts.
2016-02-12 17:10:46.567 App[4688:181576] Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior (<UISearchController: 0x7fa72ae9c5c0>)
2016-02-12 17:10:46.689 App[4688:181576] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/santanu/Library/Developer/CoreSimulator/Devices/80481011-AC98-4530-974D-CBEB990F4C81/data/Containers/Bundle/Application/4D6FFFBE-709D-4C82-B339-5D6661112B56/App.app> (loaded)' with name 'EPContactCell''
I followed by above error after updating latest by pod.
I added the EPContactsPicker in suggested way only:
let contactScene = EPContactsPicker(delegate: self, multiSelection: true, subtitleCellType: SubtitleCellValue.Email)
let contactNavController = UINavigationController(rootViewController: contactScene)
self.presentViewController(contactNavController, animated: true, completion: nil)
If the persons name is an emoji, it crashes :(
Multi selection doesn’t work properly. The tick marks on the cells doesn’t show up properly. For example if you select two contacts in multiselection, the tick marks are displayed on the other cells as well.
Please add tag 1.0.8 to the commit d9367fb, so users may use your framework with Swift 2.3 via that line in podfile:
pod 'EPContactsPicker', '~> 1.0.8'
In that commit I've already added version 1.0.8 to a podspec.
I'm trying to make a vCard out of selected contact by EPContactPicker. The object is of type EPContact & I want it to be in a CNContact type. How should I type cast it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.