I am new at iOS development. I wish to ask you how if it possible to play video with images overlay. What I`m wishing to do is play some mp4 file, and on top of it put some png file that the user can change (UIimageview on top of video). At android development i used "media view" and could control it any way i wont. Didn't found in xCode similar view.
Take a look at MPMoviePlayerController. You can use that's view the same as any other UIView.
Related
does anybody know any library or tools to show a animated gif which comes from a changing URL on IOS7 devices?
I'm searching for a better performance solution than UIWebView.
Maybe some code which explodes the frames into separate images.
There are several open source projects for displaying GIFs in iOS.
Check these out:
UIImage from animated GIF
GIF UIImageView Loader
GIF iOS
Animated GIF iPhone
Flipboard FLAnimatedImage
Also, there are questions on SO with a similar problem. Check them out here and here.
We need to open the iPhone camera, to take images that will be saved to the camera roll.
I have read many examples here that all of them opens the UIImagePickerView.
Besides the fact that i cant understand why i have to open the picker view in order to open the camera , i just can't do that- i dont want the picker view, because i have my costumed photo album that we build, and we just need to have a little button in it, that opens the camera to take an image . without opening any other views above it .
Is that possible to use the camera without this pickerview that will cover my scene ?
or can i lead the user to the camera app and than take him back to my app ?
Thanks.
Instead of high level (i.e. Apple supplies the UI element) classes, you have to go to a more foundational (lower) level of API's, which would be AVCaptureDevice and AVCaptureDeviceInput.
And Apple has some nice source code available in their AVCam project.
If you want to display camera stream in you app without UIImagePickerController than you should you AVFoundation framework.
Here some some examples and tutorials:
take-photos-with AVFoundation
Custom camera
Displaying camera
I'd like to know where should I place images and videos so they could be visible for UIImagePicker.
I opend folder /IPhone Simulator/5.1/Media/ pasted there images.
However they are not visible for UIImagePickerController. But when I download an image from website using iPhone simulator, this image become visible for Picker (I did't try it for videos because I don't know how to download videos from simulator).
So I'd like to know where and how should I place images and videos in /IPhone Simulator/5.1/Media folder.
Kind Regards
I have xcode 4.5.2 and work with iOS 6. I need create photo library, and i must keep photo and show my app with only simulator. And i can't find directory where i can paste my photos (like photo library on iPhone) for further browse this photo to my app. Or how browse photos to app Photo in iOS Simulator. I saw some links like
Users/Library/Application Support/iPhone Simulator/5.0/Media/DCIM
but i have not such directory =(
So if i will use
UIImagePickerControllerSourceTypePhotoLibrary
where i must find photos, if i use only iOS Simulator without any apple devices?
You may need to create DCIM if it doesn't already exist.
You can add photos from safari in the simulator, by Tapping and Holding on the image. If you drag an image (or any other file, like a PDF) to the simulator, it will immediately open Safari and display the image, so this is quite an easy way of getting images to it.
simple steps :
1) Drag & Drop image onto simulator
- this will open a browser with your image
2) Click & hold image
- this will open options
3) save image
- this will copy image onto simulator
here is how you add an image to the photos in your xcode simulator. start the simulator by selecting your app and run it. then stop the run operation in xcode so you can go to the home screen in your simulator. drag and drop an image into your simulator screen. depending to what version of the xcode you are using it will differ how you save the image. i use Xcode 4.5. in 4.5 when you drop the image it opens a web view like window. on the butom of the screen you can tap the middle icon and it gives you the option and icons for sharing. just save the image to photos in there and there you have it. hope this helps.
I have an app and it has a static uimage as the background. To dress up the app, I have a video that would be great as the background but I cannot find any examples of how to play a video as a background view. I have looked at MPMoviePlayerController but I am not sure if it would do what I am expecting.
Anyone have any ideas, or an example of a video as a background to an app?
Thanks
I guess you could just use the MPMoviePlayerController, if you don't do it fullscreen (which is not possible on the iPhone, but it is so on the iPad).
Then you can just put buttons, labels whatever you want on top of that.
Should work fine :)