Commit 29c56020 authored by 刘俊宏's avatar 刘俊宏

解决下单联系人信息点通讯录bug

parent f1875c7f
......@@ -43,16 +43,16 @@ class XiaDanUserInfoViewController: BaseViewController , CNContactPickerDelegate
}
func gotoPhoneAccoutAction(_ sender: UIButton) {
@IBAction func gotoAcountAction(_ sender: UIButton) {
print("gotoPhoneAccoutAction-获取通讯录")
//联系人选择控制器
let contactPicker = CNContactPickerViewController()
//设置代理
contactPicker.delegate = self
//弹出控制器
self.present(contactPicker, animated: true, completion: nil)
//联系人选择控制器
let contactPicker = CNContactPickerViewController()
//设置代理
contactPicker.delegate = self
//弹出控制器
self.present(contactPicker, animated: true, completion: nil)
}
//单选联系人
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
......@@ -73,7 +73,7 @@
</constraints>
<state key="normal" image="编组-下单联系人信息"/>
<connections>
<action selector="gotoPhoneAccoutAction:" destination="-1" eventType="touchUpInside" id="lbo-1b-qKN"/>
<action selector="gotoAcountAction:" destination="-1" eventType="touchUpInside" id="qOr-hp-q1d"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yar-vA-3Fc">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment