• Stars
    star
    404
  • Rank 106,262 (Top 3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 12 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A nice ALAssetsLibrary category for saving images & videos into custom photo album.

ALAssetsLibrary-CustomPhotoAlbum

A nice ALAssetsLibrary category for saving images into custom photo album by @MarinTodorov.

Usage

//      |image|: The target image to be saved
//  |albumName|: Custom album name
// |completion|: Block to be executed when succeed to write the image data
//               to the assets library (camera roll)
//    |failure|: Block to be executed when failed to add the asset to the
//               custom photo album
- (void)saveImage:(UIImage *)image
          toAlbum:(NSString *)albumName
       completion:(ALAssetsLibraryWriteImageCompletionBlock)completion
          failure:(ALAssetsLibraryAccessFailureBlock)failure;

And for video:

//   |videoUrl|: The target video to be saved
//  |albumName|: Custom album name
// |completion|: Block to be executed when succeed to write the image data
//               to the assets library (camera roll)
//    |failure|: Block to be executed when failed to add the asset to the
//               custom photo album
- (void)saveVideo:(NSURL *)videoUrl
          toAlbum:(NSString *)albumName
       completion:(ALAssetsLibraryWriteImageCompletionBlock)completion
          failure:(ALAssetsLibraryAccessFailureBlock)failure;

Write the image data with meta data to the assets library (camera roll).

//  |imageData|: The image data to be saved
//  |albumName|: Custom album name
//   |metadata|: Meta data for image
// |completion|: Block to be executed when succeed to write the image data
//    |failure|: block to be executed when failed to add the asset to the custom photo album
- (void)saveImageData:(NSData *)imageData
              toAlbum:(NSString *)albumName
             metadata:(NSDictionary *)metadata
           completion:(ALAssetsLibraryWriteImageCompletionBlock)completion
              failure:(ALAssetsLibraryAccessFailureBlock)failure;

Dependence

  1. AssetsLibrary.framework
  2. MobileCoreServices.framework
  3. Photos.framework (for iOS 8+ projects)

REFERENCE

Contributors

@MarinTodorov
@Kjuly
@coryjthompson
@speedyapocalypse
@blazingpair (@paulz)
@ajcollins
@wka
@NSFish
@michaelcameron

More Repositories

1

KYCircleMenu

An iOS UI control that allows you to build a circular menu by laying out buttons in a circle pattern adjusting from the number of buttons (1~6).
Objective-C
787
star
2

iPokeMon

PokΓ©Mon like game on iOS with Location Based Service.
Objective-C
430
star
3

KYArcTab

Arcuated tab view controller with toggleing animation, 2 ~ 4 tabs are enabled. What's more, you can swipe left or right to toggle the views.
Objective-C
243
star
4

pngcrush

It is a free, open source command-line utility for optimizing PNG image files ( batch script included ).
C
192
star
5

iPokeMon-Server

iPokeMon Server.
Python
122
star
6

UIBezierPath-Symbol

[DEPRECATED] Symbol extension for UIBezierPath class (UIBezierPath category).
Objective-C
115
star
7

MKMapView-ZoomLevel

MKMapView category with zoom level extension.
Objective-C
23
star
8

SLNTFS

A preference Pane that allow you to enable writing on NTFS disks via the Apple driver.
Objective-C
13
star
9

KYNearbyService

A service for nearby discovery and communication.
Swift
11
star
10

iPokeMon-Doc

All documents (including a paper) for iPokeMon development.
Shell
7
star
11

issues

Issues & workarounds.
6
star
12

YeNom

[Legacy] Project Page for YeNom - Accounting tool on iOS.
HTML
3
star
13

seek-seek-seek

A 3D maze game base on Ogre3d, Bullet Physics, OpenAL, CEGUI, etc.
C++
2
star
14

KYUnlockCodeManager

Manage unlock codes (invitation code or free code) locally on client side only (iOS).
Objective-C
2
star
15

localhost-fake-server

Localhost fake servers
Python
2
star
16

RockPaper

Project page for RockPaper - A simple Rock Paper Scissors game on iOS.
Shell
2
star
17

templates4TeX

Some templates for TeX, LaTeX, ConTeXt, and related typesetting systems.
2
star
18

3d-path-search

A simple character auto path search demo that use Ogre3d & Micropather.
C++
2
star
19

Code-Compressor

A simple javascript & CSS code online compressor.
JavaScript
2
star
20

kjuly.github.com

Dev - Kjuly.com
CSS
2
star
21

GTMOAuth2

Lib for OAuth2 (unofficial).
Objective-C
1
star
22

KYProjectPageTheme

Project page theme.
JavaScript
1
star
23

iPokeMon-Resource

You can maintains all resources including PokeMon package here.
1
star
24

ios-exploration

A repository on some iOS learning tests.
Objective-C
1
star
25

dotvim

My vim configuration.
Vim Script
1
star
26

myoctheme

my octopress theme.
JavaScript
1
star
27

PhotoShop

Just a mirror of the PhotoShop v1.0 source code.
OpenEdge ABL
1
star
28

KYImageProcessor

The image processing foundation of KYPhotoPicker.
Swift
1
star
29

UDAExplainer

Sensitive user data access explainer, such as for Photo Library, Face ID, App Tracking Transparency, etc.
Swift
1
star
30

ColorCalculation

A color extension library for calculating hex, brightness, etc.
Swift
1
star
31

KYLogger

A local system logger for Apple platforms.
Swift
1
star
32

GPA-OC

A GPA (grade point average) online calculator.
PHP
1
star