UICollectionDataSource
- override func numberOfSectionsInCollectionView(collectionView: UICollectionView) -> Int {
+ override func numberOfSections(in collectionView: UICollectionView) -> Int {
- override func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+ override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
- override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
+ override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
UITableViewDataSource
- override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
+ override func numberOfSections(in tableView: UITableView) -> Int {
- override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
+ override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
+ override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
+
+ override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
CGGeometory
- frame = CGRectMake(0.0, 0.0, self.view.frame.width, self.view.frame.height)
+ frame = CGRect(x: 0.0, y: 0.0, width: self.view.frame.width, height: self.view.frame.height)
UIVIewController
- override func shouldAutomaticallyForwardAppearanceMethods() -> Bool {
+ override var shouldAutomaticallyForwardAppearanceMethods: Bool {
Cocoapods
"Use Legacy Swift Language Version"のエラーが出た場合、該当のフレームワークのBuild Settingsで「Use Legacy Swift Language Version」の設定をNOにする
0 件のコメント:
コメントを投稿