我是 iPhone 开发新手,我想像给定格式一样初始化数组中的字符串
-(IBAction)btnSubmit:(UIButton *)sender
{
NSString *phone = phoneNumber.text;
NSLog(@"Phone :%@",phone);
NSString *TxtUserName = userName.text;
NSString *TxtEmailId = emailId.text;
NSArray *details = [NSArray arrayWithObjects:TxtUserName,TxtEmailId,phone,nil];
}
我正在获取详细信息:(“xxxxxxx”,“xxxxx@gmail.com”,7675)
我想获取详细信息 :("Name=xxxx","Email=xxxx@gmail.com","Phone=8786")
有任何想法吗?提前致谢。