在使用信标(iOS设备)进行测试时,我发现侦听器信标会发出一些意外行为.locationManager:即使信标进入某个区域,也不会调用didEnterRegion方法.但是locationManager:didRangeBeacons:inRegion:被正确调用,并在那里显示检测到的信标.有没有人经历过这样的事情.
我正在为我的tableview使用自定义表格视图单元格.为了设置边框,我在自定义单元格上放置了一个视图,我正在更改其边框属性.
self.borderView.layer.borderColor = VIEW_BORDER_COLOR;
Run Code Online (Sandbox Code Playgroud)
我想通过改变它的边框颜色来突出显示所选单元格.我试着在didselectrowforindexpath更改它,
cell.borderView.layer.borderColor = [UIColor yellowColor].CGColor;
Run Code Online (Sandbox Code Playgroud)
但随着细胞的重复使用,它会在滚动时发生变化.