뭔가가 당신을 위해 작동 할 수
감사 :
NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"yourHtml" ofType:@"html"];
NSError *error = nil;
NSString *inputHtml = [[NSString alloc] initWithContentsOfFile:htmlPath encoding:NSUTF8StringEncoding error:&error];
NSString *nameParsedHtml = [inputHtml stringByReplacingOccurrencesOfString:@"Name:" withString:[NSString stringWithFormat:@"Name: %@", self.nameField.text]];
NSString *emailParsedHtml = [nameParsedHtml stringByReplacingOccurrencesOfString:@"Email:" withString:[NSString stringWithFormat:@"Email: %@", self.emailField.text]];
NSString *outputHtml = [emailParsedHtml stringByReplacingOccurrencesOfString:@"Phone:" withString:[NSString stringWithFormat:@"Phone: %@", self.phoneField.text]];
NSLog(@"Output html string is: %@", outputHtml);
감사합니다 ... 마법처럼 작동합니다. – iOSDev
@AsifHabib 설명하고 새로운 질문과 링크를 여기에 게시하십시오 – klcjr89
교차 체크! 지금 일하고있어! 내 편이 잘못됐다! – AsifHabib