iphone,ios,mac,旅游计划任务安排管理系统app,课程,毕业设计

3995
    


来源:
Licence:
联系:
分类:
平台:
环境:
大小:
更新:
标签:
联系方式 :
免费下载 ×

下载APP,支持永久资源免费下载

限免产品服务请联系qq:1585269081

下载APP
免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
下载 ×

下载APP,资源永久免费


如果出现不能下载的情况,请联系站长,联系方式在下方。

免费下载 ×

下载论文助手APP,资源永久免费

免费获取

如果你已经登录仍然出现不能下载的情况,请【点击刷新】本页面或者联系站长



支持swift编写

主要核心代码如下:


//

//  LeftMenuC.swift

//  Plan

//

//  Created by Tony on 15/1/30.

//  Copyright (c) 2015 Jesse. All rights reserved.

//

import UIKit

protocol MenuClickDelegate{

      func clickMenu()

}

var menuClickDelegate: MenuClickDelegate?

class LeftMenuC: UIViewController, UITableViewDelegate, UITableViewDataSource {

    

    @IBOutlet weak var mTableView: UITableView!

    var delegate: MenuDelegate?

    override func viewDidLoad() {

        super.viewDidLoad()

       

    }

    

    override func viewWillAppear(animated: Bool) {

         self.navigationController?.navigationBar.hidden = true

       

    }

    

    override func viewWillDisappear(animated: Bool) {

         self.navigationController?.navigationBar.hidden = false

    }

    

    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {

        return 5

    }

    

    func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {

        return 50

    }

    

    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

        let cellIdentifier: String = "LeftMenuCellIdentifier"

        var cell: UITableViewCell? = tableView.dequeueReusableCellWithIdentifier(cellIdentifier)

        

        if cell == nil { // no value

            cell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: cellIdentifier)

        }

        

        cell?.textLabel?.text = "123"

        

        return cell!

    }

    

    func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {

        tableView.deselectRowAtIndexPath(indexPath, animated: true)

        if menuClickDelegate != nil {

            menuClickDelegate?.clickMenu()

        }

    }

    

    

}



免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
温馨提示
请用电脑打开本网页,即可以免费获取你想要的了。
扫描加我微信 ×

演示

×
登录 ×


下载 ×
论文助手网
论文助手,最开放的学术期刊平台
							 
回复
来来来,吐槽点啥吧

作者联系方式

×

向作者索要->