cuốn sách gpt4 ai đã làm

ios - Khi tôi đăng hình ảnh lên instagram từ ứng dụng của mình, nó sẽ mở trực tiếp phần đã lọc của Instagram, nhưng tôi muốn nó mở phần đã cắt của Instagram?

In lại Tác giả: Taklimakan Thời gian cập nhật: 2023-11-02 21:08:20 29 4
mua khóa gpt4 Nike

- (IBAction)postToInstagram:(id)sender {
NSURL *instagramURL = [NSURL URLWithString:@"instagram://app"];

if ([[UIApplication SharedApplication] canOpenURL:instagramURL])
{
CGRect trực tràng = CGRectMake(0,0,0,0);
NSString *jpgPath=[NSHomeDirectory() stringByAppendingPathComponent:@"Documents/Home_1_instgram.igo"];
UIImage *imageN = [UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"%@", jpgPath]];

// [UIImagePNGRe Presentation(_imageDetail.image) writeToFile:jpgPath nguyên tử:YES];
NSURL *igImageHookFile = [[NSURL alloc] initWithString:[[NSString alloc] initWithFormat:@"file://%@",jpgPath]];
self.documentController.UTI = @"com.instagram.exclusivegram";

self.documentController = [self setupControllerWithURL:igImageHookFile useDelegate:self];
NSString *caption = self.catalogueImage.caption; //settext làm chú thích mặc định

//Xóa chú thích điền sẵn khỏi chia sẻ trên thiết bị di động
//http://developers.instagram.com/post/125972775561/removing-pre-filled-captions-from-mobile-sharing

self.documentController.annotation = [NSDictionary từ điểnWithObject:@"Ở đây Đưa ra những gì bạn muốn chia sẻ" forKey:@"InstagramCaption"];

NSLog(@"caption: %@",caption);

[self.documentController hiện tạiOpenInMenuFromRect: trực tiếp inView: self.view hoạt hình: CÓ ];
}
khác
{
UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@"INSTAGRAM NOT FOUND" tin nhắn:@"Vui lòng cài đặt instagram để đăng lên instagram." delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok", nil];
[chương trình cảnh báo];
}
}

câu trả lời hay nhất

Tôi đã tìm thấy một giải pháp. Trong iOS, Instagram đưa người dùng trực tiếp đến phần bộ lọc, trong khi ở Android, người dùng được dẫn đến phần cắt. Nó đã được đề cập trong Instagram iPhone Hook. Cảm ơn

Về ios - Khi tôi đăng hình ảnh lên instagram từ ứng dụng của mình, nó sẽ mở trực tiếp phần đã lọc của Instagram, nhưng tôi muốn nó mở phần đã cắt của Instagram? , chúng tôi đã tìm thấy một câu hỏi tương tự trên Stack Overflow: https://stackoverflow.com/questions/35403345/

29 4 0
Taklimakan
Hồ sơ

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá taxi Didi miễn phí
Phiếu giảm giá taxi Didi
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress