• Navigationbar 右侧按钮


    UIBarButtonItem *updateButton = [[UIBarButtonItem alloc] initWithTitle:@"修改" style:UIBarButtonItemStylePlain target:self action:@selector(updateInfo)];

        self.navigationItem.rightBarButtonItem = updateButton;

    navigationbar 左侧按钮

     self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"首页"style:UIBarButtonItemStyleBordered target:self action:@selector(popToRootView)] 

                                                 autorelease];

        self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"测试"style:UIBarButtonItemStyleBordered target:self action:@selector(test)] 

                                                  autorelease];

    }

    - (void)popToRootView

    {

        [self.navigationController popToRootViewControllerAnimated:YES];

    }

  • 相关阅读:
    Bluedroid介绍
    Android蓝牙介绍
    Android Bluetooth抓包
    Bluetooth LMP介绍
    Bluetooth Baseband介绍
    Bluetooth SDP介绍
    Bluetooth HFP介绍
    Bluetooth RFCOMM介绍
    Bluetooth L2CAP介绍
    Windows开发
  • 原文地址:https://www.cnblogs.com/aiwoqu/p/4624175.html
Copyright © 2020-2023  润新知