-4
嘿家伙我编码调整,需要与专家用户的帮助(使用theos和标志与目标C混合)我添加了一个选项来保存instagram(第三方应用程序)我添加的照片保存按钮保存应用程序内的图像
-(void)actionSheetDismissedWithButtonTitled:(NSString *)title{if([title isEqualtToString:@"Save"])
成功添加按钮,并准备保存图像代码如下:
%hook IGFeedItemActionCell -(void)actionSheetDismissedWithButtonTitled:(NSString *)title { if ([title isEqualToString:@"Save"]) IGFeedItem *post = self.feedItem;{ UIImageWriteToSavedAlbum(post, nil,nil,nil);UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Image Saved" message:@"The image was saved."delegate:self cancelButtonTitle:@"Okay" otherButtonTitles:nil, nil];[alert show];} } %end
我的问题是如何保存代码与应用中的图片类的链接(对于图片是IGFeedItemPhotoView
)
由于事先
这是为什么标签C++而不是Objective-C的? –