标签:elf sele ext div cto selector soft highlight nbsp
在iOS上运行时,会报找不到mapTypeChanged的错误
segemntedControl.addTarget(self, action: "mapTypeChanged", for: .valueChanged)
正确的做法是
segemntedControl.addTarget(self, action: #selector(MapViewController.mapTypeChanged(segControl:)), for: .valueChanged)
标签:elf sele ext div cto selector soft highlight nbsp
原文地址:https://www.cnblogs.com/fengyaoyao/p/12350062.html