-(IBAction)ShareWithInstagram:(id)sender { NSURL *instagramURL = [NSURL URLWithString:@"instagram://app"]; if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) { NSString *documentsDirectory = [NSString stringWithFormat:@"%@/brimages/",[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES)objectAtIndex:0]]; NSFileManager *manager = [NSFileManager defaultManager]; NSArray *imageFilenames = [manager contentsOfDirectoryAtPath:documentsDirectory error:nil]; NSString *imageName = [imageFilenames objectAtIndex:page]; NSString *fullpath = [NSString stringWithFormat:@"%@%@",documentsDirectory,imageName]; NSString *fullpath1 = [NSString stringWithFormat:@"%@",fullpath]; //imageToUpload is a file path with .ig file extension self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:fullpath1]]; self.documentInteractionController.UTI = @"com.instagram.exclusivegram"; self.documentInteractionController.annotation = [NSDictionary dictionaryWithObject:@"my caption" forKey:@"InstagramCaption"]; [self.documentInteractionController presentOpenInMenuFromRect:[sender frame] inView:self.view animated:YES]; }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง