Programing Language/iOS(Swift)
-
iOS ) collectionview 수평으로 페이징하기.Programing Language/iOS(Swift) 2019. 12. 26. 16:28
let person_image_collectionview : UICollectionView = { let cv = UICollectionView(frame: CGRect.init(), collectionViewLayout: UICollectionViewFlowLayout.init()) cv.translatesAutoresizingMaskIntoConstraints = false cv.backgroundColor = .black //한페이지당 페이징 설정하기 cv.isPagingEnabled = true let layout = UICollectionViewFlowLayout() //수평으로 스크롤 가능하게하기 layout.scrollDirection = .horizontal cv.collectionView..
-
iOS ) uiView 에니메이션써서 높이 늘리기 programmaticallyPrograming Language/iOS(Swift) 2019. 12. 24. 16:29
참고코드
-
iOS ) UITabBarController 페이지 Programmatically 만들기 swiftPrograming Language/iOS(Swift) 2019. 12. 5. 08:49
1. viewdidLoad에 generateNavController 메서드 호출 override func viewDidLoad() { super.viewDidLoad() itembar_height = Int(view.frame.height * 0.1) view.backgroundColor = .white //블랙모드 방지 overrideUserInterfaceStyle = .light //tabBar.barTintColor = .blue let nav = generateNavController(vc: ViewController(), title: "1", image: #imageLiteral(resourceName: "unselected_image"), image_selected: #imageLiteral..
-
iOS ) CollectionView에 수평 스크롤 넣기 Programmatically (horizon) - swiftPrograming Language/iOS(Swift) 2019. 11. 29. 01:58
예제 코드 let collectionView = UICollectionView() let layout = UICollectionViewFlowLayout() layout.scrollDirection = .horizontal self.collectionView.collectionViewLayout = layout self.collectionView.pagingEnabled = YES;