uiimagepickercontroller - How can I seed the iOS simulator photo albums? -


i've got suite of kif tests our app, 1 part can't work out how cover use uiimagepickercontrollers. can't check camera, i'd write scenario user chooses image library. know there's +[kifteststep stepstochoosephotoinalbum:atrow:column:], don't know how set there's consistent set of images test choose from. how seed simulator's photo albums?

there 2 different ways (one involves programming) populate photo library of ios simulator:

  • open safari in ios simulator, search large sizes images in google, open 1 , display in full size. long press on photo , choose save. repeat several photos fill library.

  • create folder on mac images want populate photo-library with. write small ios application, iterates on directory , creates nsdata objects each photo file. save nsdata object photo-library using the

    (void)writeimagedatatosavedphotosalbum:(nsdata *)imagedata metadata:(nsdictionary *)metadata completionblock:(alassetslibrarywriteimagecompletionblock)completionblock

method of assetslibrary.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -