Xcode 8拖动并连接@IBAction错误地在连接检查器IB上添加"WithSender"
因此,我必须将方法重命名为类似的方法
@IBAction func tappedConfirmButtonWithSender(sender:AnyObject){}
不应该吗?:
@IBAction func tappedConfirmButton(sender:AnyObject){}
这是我的错还是这个错误?
如果我的XML解析器通过它时会有一个像"Fuel&Additives"这样的字符串,它会忽略" & "符号之前的任何内容,为什么?
if ([elementname isEqualToString:@"GLDesc"])
{
currentParsedObjectContainer.GLDesc = currentNodeContent;
NSLog(@"%@",currentParsedObjectContainer.GLDesc);
}
Run Code Online (Sandbox Code Playgroud)