小编Sur*_*Joe的帖子

如何使用vsftp将用户监禁到其主文件夹的子目录中

如何在用户登录时将其配置为将root更改为其主文件夹的子目录.即/home/username/files

linux ftp vsftpd

1
推荐指数
1
解决办法
9922
查看次数

警告:传递'setOn:'的参数1使指针中的整数不带强制转换

我是Objective C的新手,所以如果这是一个愚蠢的问题我会道歉.我在以下代码中收到此错误.

我使用recurringBool作为全局变量

//Declared in the AppDelegate.h
extern BOOL *recurringBool;

//Defined in the AppDelegate.m
BOOL *recurringBool;

// In another class this method sets recurringBool
- (IBAction)MakeRecurring:(id)sender {
    UISwitch *Switch = (UISwitch *)sender;
    //this is where the 1st error is occurring. aNetS is a UISwitch
    recurringBool = Switch.on;
        **//warning: assignment makes pointer from integer without a cast**
}

//And in another method aNetS is set to recurringBool;
//this is where the second error is occurring. aNetS is a UISwitch
aNetS.on = …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c ipad ios4 ios

0
推荐指数
1
解决办法
248
查看次数

标签 统计

ftp ×1

ios ×1

ios4 ×1

ipad ×1

iphone ×1

linux ×1

objective-c ×1

vsftpd ×1