// URL編碼會(huì)編碼&,問(wèn)號(hào)和其他標(biāo)點(diǎn)符號(hào)。
// 項(xiàng)目中點(diǎn)擊標(biāo)簽 根據(jù)標(biāo)簽的currentTitle 請(qǐng)求數(shù)據(jù) 若需要轉(zhuǎn)換成百分號(hào)編碼格式拼接api?
NSString *placeString = sender.currentTitle;
// 百分號(hào)編碼
NSString *encoded?=[placeString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
// ?請(qǐng)求api?
NSString *urlStr?=?[NSString stringWithFormat:@"http://api.hehe.com/v1.1/base/search?keywords=%@&latitude=212.579770&longitude=100.858545&token=8ba0aa58-aa06-11e5-8882-00163e002e59",encoded];