[Solved] Upgrade Xcode 7.3.1 Project to Xcode 8.0

The final answer of above question is: add the code snippet in your podfile post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings[‘SWIFT_VERSION’] = ‘3.0’ end end end then check swift legacy in build settings and set it to NO for swift 3 or you can set Yes for swift 2.3 (if you are … Read more

[Solved] How do I capture screen view and share it? [closed]

You can add share button var shareButton: UIBarButtonItem = UIBarButtonItem(barButtonSystemItem: .Action, target: self, action: “shareButtonPressed:”) self.navigationItem.rightBarButtonItem = shareButton and populate share options func shareButtonPressed(sender: AnyObject) { NSLog(“shareButton pressed”) let stringtoshare: String = “This is a string to share” //add current screen shot image to share let imagetoshare = captureScreen() let activityItems: [AnyObject] = [stringtoshare, imagetoshare] … Read more

[Solved] When I pass data from TableView to child PageViewController, it can go to next child

The problem here is that you are referencing two completely different objects. In viewDidLoad you create ThongTinBNPage2 viewController and then add it to the viewControllers property of the pageViewController. However, the objects stored in VCArr are two totally different viewControllers. Let’s think about it this way: When viewDidLoad is called you create viewController object #1 … Read more