[Code Note] Click anywhere, and the city appears. Click city in the Code note.
I ,.
2. project directory.
3. Code.
// Click anywhere and the following figure shows the city-(void) touchesBegan :( NSSet *) touches withEvent :( UIEvent *) event {UIActionSheet * city = [[UIActionSheet alloc] initWithTitle: @ "city selection" delegate: self cancelButtonTitle: nil destructiveButtonTitle: nil otherButtonTitles: @ "Beijing", @ "Shanghai", @ "Tianjin", @ "Chongqing ", @ "Harbin", @ "Changchun", @ "Shenyang", @ "Hohhot", @ "Shijiazhuang", @ "Urumqi", @ "Lanzhou", @ "Xi'an ", @ "Xining", @ "Yinchuan", @ "Zhengzhou", @ "Jinan", @ "Taiyuan", @ "Hefei", @ "Wuhan", @ "Nanjing ", @ "Chengdu", @ "Guiyang", @ "Kunming", @ "Nanning", @ "Lhasa", @ "Hangzhou", @ "Nanchang", @ "Guangzhou ", @ "Fuzhou", @ "Taipei", @ "Haikou", @ "Hong Kong", @ "Macao", nil]; city. backgroundColor = [UIColor orangeColor]; [city showInView: self. view];}