How to fetch all images from custom Photo Album – Swift

For Swift 4 using this answer https://stackoverflow.com/a/28904792/4795651 edited a little for myself. import Photos func fetchCustomAlbumPhotos() { let albumName = “Album Name Here” var assetCollection = PHAssetCollection() var albumFound = Bool() var photoAssets = PHFetchResult<AnyObject>() let fetchOptions = PHFetchOptions() fetchOptions.predicate = NSPredicate(format: “title = %@”, albumName) let collection:PHFetchResult = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .any, options: fetchOptions) … Read more

iPhone SDK – How to disable the picture preview in UIImagePickerController?

I asked a similar question here My solution was to create a customized view on top of the default UIImagePickerControllerView. I downloaded the example Augmented Reality Then you can use the OverlayView.m and OverlayView.h by adding them to your project: I made the custom picker toolbar, picker and overlayView global so that I can access … Read more

How to take a photo and send to HTTP POST request with Android?

This link should be more than sufficient for clicking, saving and getting path of an image: Capture Images This is the class i wrote for uploading images via HTTP POST: public class MultipartServer { private static final String TAG = “MultipartServer”; private static String crlf = “\r\n”; private static String twoHyphens = “–“; private static … Read more