你會怎樣來顯示在Twitter的應用程序中的用戶的照片,其中照片媒體是正確的鍵盤這樣下:像Twitter應用程序中的顯示相機卷?
5
A
回答
0
我解決我自己的問題通過使用組件RRMessageController
https://github.com/remirobert/RRMessageController
0
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:imagePickerController animated:YES completion:nil];
+0
只需點擊一個按鈕就可以顯示它,我希望它在View Controller中默認顯示。 – Prad
1
然後寫一些類似代碼:
@interface ImageCell : UICollectionViewCell
@property (strong) UIImageView *imageView;
@end
@implementation ImageCell
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
self.imageView = [UIImageView new];
[self addSubview:self.imageView];
return self;
}
- (void)layoutSubviews
{
[super layoutSubviews];
self.imageView.frame = self.bounds;
}
@end
然後:
需要從這裏取決於應用程序的要求進行優化此代碼。它還需要自定義集合視圖框架和佈局以符合UI要求。
0
相關問題
- 1. IPhone UIImagepicker與相機顯示相機捲縮略圖像默認相機應用程序?
- 2. 在WP7中顯示相機膠捲和相冊圖像
- 3. 顯示屏幕閃光像iOS相機應用程序
- 4. iOS5 Twitter框架 - 從相機/相機膠捲選擇圖像
- 5. 使用UIImagePickerController顯示相同的默認相機應用程序
- 6. 如何在Swift中顯示Uploaded(從相機膠捲)圖像
- 7. Twitter引導程序 - 圖像不顯示
- 8. 在iPhone應用程序中自動上傳相機膠捲?
- 9. 顯示來自相機膠捲的風景圖像xcode
- 10. 刷新顯示相機膠捲內容
- 11. 示例twitter應用程序
- 12. AppStore顯示相同的應用程序
- 13. 鏈接到照片從我的應用程序/相機卷
- 14. UIImagePickerController不會顯示相機,只有相機膠捲
- 15. 顯示圖像的Android應用程序
- 16. 顯示圖像的iPhone應用程序
- 17. 使用像本機相機應用程序的AVCam對焦
- 18. QuickActions像Twitter的應用程序
- 19. Android中的相機應用程序
- 20. 窗口系統托盤應用程序像卷應用程序
- 21. Android相機應用程序
- 22. 圖像無法顯示在手機差距應用程序
- 23. Silverlight主機應用程序只顯示加載圖像
- 24. 從相機膠捲中選擇的圖像顯示爲黑色屏幕
- 25. 如何在windows phone中顯示完整的resolation相機膠捲圖像
- 26. 試圖在我的應用程序中顯示剛剛與內置相機應用程序拍攝的圖片
- 27. Phonegap:顯示相機膠捲中的照片列表?
- 28. LinearLayout中包含多個圖像的Android相機應用程序
- 29. 在應用程序中使用相機
- 30. 如何在BlackBerry應用程序中顯示圖像到我的應用程序
我確實不知道Twitter如何實現(duh),但是你可以使用容器來實現這一點。只需在存儲器中創建'UIImagePicker',而不是使用'presentViewController ...',只需將其添加爲子視圖控制器即可。我還沒有測試過這種方法,所以我直到有人做這個評論。 – Oxcug