路由器wds设置最终版、一些ios基础知识

路由器wds

wds是路由器的一个功能,能让多个无线路由连在一起。
教程:http://jingyan.baidu.com/article/fea4511a7c2b2ef7bb912523.html
首先主路(不用开启wds功能)由设置固定的wifi参数,以后都不用设置了,在用其它路由(通过wds功能)连上主路由的wifi,注意主要两步;修改lan地址、禁止HDCP分配ip,以上设置好了之后,ssid可以与主路由相同,也可以不与主路由相同,当然为了方便最后ssid也设置成一样的。

ios知识

设置右上角图标消息个数

[UIApplication sharedApplication].applicationIconBadgeNumber = 8;

viewcontrol添加一个button,并设置他的点击事件:

UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
[button setTitle:@"hidden" forState:UIControlStateNormal];
[button setFrame:CGRectMake(100, 100, 200, 50)];
[self.view addSubview:button];

  [button addTarget:self action:@selector(hiden) forControlEvents:UIControlEventTouchUpInside];

-(void) hiden {
    NSLog(@"hidden");
}

swift版button添加事件:

@IBAction func startGame (sender:UIButton) {
let alterview = UIAlertView();
alterview.title  = "开始啦";
alterview.message = "msg"
alterview.addButtonWithTitle("btn!");
alterview.show();


alterview.delegate = self;
}

    func alertView(alertView:UIAlertView, clickedButtonAtIndex buttonIndex:Int){
        NSLog("%S", "@@")
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值