¡@

Home 

2014/10/15 ¤U¤È 10:10:13

iphone Programming Glossary: imgarray

Get all of the pictures from an iPhone photoLibrary in an array using AssetsLibrary framework?

http://stackoverflow.com/questions/12633843/get-all-of-the-pictures-from-an-iphone-photolibrary-in-an-array-using-assetslibr

ALAssetsLibrary library NSArray imageArray NSMutableArray mutableArray void allPhotosCollected NSArray imgArray @end implementation file declare global count variable as static int count 0 @implementation getPhotoLibViewController void.. assetGroupEnumerator failureBlock ^ NSError error NSLog @ There is an error void allPhotosCollected NSArray imgArray write your code here after getting all the photos from library... NSLog @ all pictures are @ imgArray @end Use getAllPicture..

how to pushViewController to another view with images in a scrollview

http://stackoverflow.com/questions/7763795/how-to-pushviewcontroller-to-another-view-with-images-in-a-scrollview

fileNames nearbyFrog.imageFiles NSMutableArray alloc init autorelease setup the array of uiimageviews NSMutableArray imgArray NSMutableArray alloc init UIImageView imageView loop through the array imgNames to add file names to imgArray for NSString.. imgArray NSMutableArray alloc init UIImageView imageView loop through the array imgNames to add file names to imgArray for NSString imageName in fileNames imageView UIImageView alloc init imageView.image UIImage imageNamed imageName imageView.contentMode.. alloc init imageView.image UIImage imageNamed imageName imageView.contentMode UIViewContentModeScaleAspectFit imgArray addObject imageView imageView release CGSize pageSize scrollview.frame.size NSUInteger page 0 for UIView viewForScrollView..