I control-drag one UIButton
created a IBOutletColleciton
and then control-drag the second UIButton
to the same IBOutletColleciton
. But there is only insert...
option. I can't connect the second UIButton
with the IBOutletColleciton
.
Could anybody tell me why? Thanks!
Create 'outlet connection' when control drag
then you will see
now you can connect both buttons to the same connection (drag your button to the label of outlet) works on both obj-c/swift
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.