iphone Programming Glossary: contents_for_pdf
Edit RTF/DOC file programmatically in xcode/ios http://stackoverflow.com/questions/10994432/edit-rtf-doc-file-programmatically-in-xcode-ios 1.0 #define kMarginInset 10.0 @interface ViewController UIViewController CGSize pageSize NSString pdfFileName NSString contents_for_pdf void generatePdfWithFilePath NSString thefilePath in .m file add this lines some where on button click to get contents of.. to get contents of rtf file in string NSString rtf_path NSBundle mainBundle pathForResource @ example ofType @ rtf contents_for_pdf NSString alloc initWithContentsOfFile rtf_path encoding NSUTF8StringEncoding error nil NSLog @ @ contents_for_pdf contents_for_pdf.. rtf contents_for_pdf NSString alloc initWithContentsOfFile rtf_path encoding NSUTF8StringEncoding error nil NSLog @ @ contents_for_pdf contents_for_pdf contents_for_pdf stringByReplacingOccurrencesOfString @ I am new to StackOverflow withString @ I regularly..
|