如何在用户登录时将其配置为将root更改为其主文件夹的子目录.即/home/username/files
我是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)