This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// InviteFrdsController.swift | |
import UIKit | |
import Contacts | |
import AlamofireImage | |
import MessageUI | |
class InviteFrdsController: UIViewController,UITableViewDelegate,UITableViewDataSource,MFMessageComposeViewControllerDelegate,UIScrollViewDelegate | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add ```UIScrollViewDelegate``` in tableview/collectionview | |
``` var isDataLoading:Bool=false | |
var pageNo:Int=1 | |
var limit:Int=0 | |
var offset:Int=0 | |
var connectionCount:Int=0``` | |
```override method func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) { | |
if scrollView == collectionView{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In swift3 create one segue -add identifier -add and set in segue(storyboard) custom storyboard class from cocoatouch file -In custom class override perform() | |
'override func perform() { | |
let sourceViewController = self.source | |
let destinationController = self.destination | |
let navigationController = sourceViewController.navigationController | |
// Pop to root view controller (not animated) before pushing | |
if self.identifier == "your identifier"{ | |
navigationController?.popViewController(animated: false) | |
navigationController?.pushViewController(destinationController, animated: true) |
NewerOlder