标签的页面未显示

时间:2017-06-12 01:55:26

标签: ios swift xcode

标签页面未显示。 我写了像

这样的PhotoController
  result = []
  for n in range(1,11):
      result.append(pow(2,n))

在此控制器中,我的目标是选择照片并将其发送到服务器。 我正在使用TabbarController,但是当我运行模拟器时,没有显示与PhotoController连接的主故事板。我不知道为什么会发生这种情况,我认为至少有2个按钮显示在那里。但是没有显示2个按钮。 但是,当我运行模拟器时会显示ViewController。 ViewController是

import Foundation
import UIKit
class PhotoController:UIViewController,UINavigationControllerDelegate,UIImagePickerControllerDelegate{
    @IBOutlet weak var myImageView: UIImageView!

    @IBAction func PhotoSelect(_ sender: Any) {
    }

    @IBAction func PhotoSend(_ sender: Any) {
        let myPickerController = UIImagePickerController()
        myPickerController.delegate = self;
        myPickerController.sourceType = UIImagePickerControllerSourceType.photoLibrary

        self.present(myPickerController, animated: true, completion: nil)
    }

      private func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject])

    {
        myImageView.image = info[UIImagePickerControllerOriginalImage] as? UIImage

        self.dismiss(animated: true, completion: nil)

    }
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        //myImageUploadRequest()
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }



  }

在此控制器中,会显示Google网站,这没关系。 所以,我认为某些联系是错误的,但我找不到重点。 我的主板是 Mainstoryboard

与PhotoController和ampstoryboard的连接是 Connection with PhotoController&mainstoryboard

我该如何解决这个问题?

0 个答案:

没有答案