【发布时间】:2016-11-10 22:30:20
【问题描述】:
我尝试如下动态更改 SWSegueFrontIdentifier 的值,因为前视图是动态的。以下是我的代码
if ([prefs boolForKey:@"isDashboardAvailable"])
{
SWSegueFrontIdentifier = @"sw_front";
} else {
SWSegueFrontIdentifier = @"sw_second_front";
}
但我收到以下错误
无法分配给变量“SWSegueFrontIdentifier” const 限定类型 'NSString *const __strong'
为什么会出现这个错误?如何更改 SWSegueFrontIdentifier 值?
【问题讨论】:
-
为什么不在 loadStoryBoardControllers 方法中采用这个逻辑?
标签: ios objective-c swrevealviewcontroller