Notice
Recent Posts
Recent Comments
Link
목록tableView (2)
아미(아름다운미소)
TableView cell 클릭 이벤트 작동안할 때 (tableview(didSelectRowAt) not called)tableView cell을 클릭 시 페이지 전환을 구현하려 하는데 계속해서 tableView(didSelectRowAt) 함수가 실행되지않는다면storyboard에서 tableview의 속성을 살펴시면 Selection항목이 No Selection으로 되어있을겁니다^^ 이걸 Single Selction으로 바꿔주면 됩니다. 해결법은 매우 간단합니다 storyboard에서 속성을 살펴보세요
랭귀지/SWIFT
2018. 5. 25. 09:00
iOS TableView의 Cell 선택 효과 제거하기
iOS 앱 개발시 TableView의 각 Cell을 클릭 시 클릭 한 부분이 클릭된 효과(gray effect) 가 기본으로 적용되는데 해당 효과 제거코드 입니다. Object - C / Swift // Objective-C: cell.selectionStyle = UITableViewCellSelectionStyleNone // or [cell setSelectionStyle:UITableViewCellSelectionStyleNone] // Swift 2: cell.selectionStyle = UITableViewCellSelectionStyle.None // Swift 3: cell.selectionStyle = .none
랭귀지/SWIFT
2018. 5. 14. 09:30