I'd like to take a sneak picture while user is playing my app and show the pic after a certain time period.
If that's not possible, I'd like to decrease the camera view size.
Is that possible?
Thank you
I dont think Apple will allow you to "sneak a pic" of the user. Your app may or may not get rejected, you may want to think of another way to allow the app to take snap of the user, maybe an alert, much like the Location dialog, asking the user to allow the action.
UIImagePicker *imagePicker.cameraViewTransform =
CGAffineTransformScale(imagePicker.cameraViewTransform, 1.0f, .5f);
You can change the by using this one.
It is completely possible. Just have a UIView overlay your UIImagePickerView. Use the
-takePicture method to randomly take a picture without them pressing anything.
Related
I'm creating an app which would provide the user with a list of audio files and let them sample a small piece of audio when they select the song (just like the iTunes iOS app).
I love the way the iTunes iOS App has implemented it (image attached); wherein I can click on a cell and the album cover flips over to show a progress indicator and a stop button. I can select a cell and the sample starts to play, and the moment I stop it, the progress indicator flips back over to show the album/song art.
I'd like to create something like that for my app. Any suggestions on how I can go ahead with it.
Thanks a ton in advance! :D
EDIT: Based on Till's suggestion, I'm adding this edit. What I wish to get by asking this question is suggestions for the best approach to make the flip animation, showing a custom view in a UITableViewCell image space, possible. Currently, I'm not worried about playing the audio or displaying the progress of the playback. I simply need suggestions on the best approach to perform the flip animation and substitute the image with a custom UIView. :) Thanks again! :D
You will need to create it. I suggest making it as a custom tablecell. If you polish it well enought, you can put it on CodeCanyon and make it worth your while.
Also, I can recommend looking at the works on http://cocoacontrols.com/ - It might not have exactly this one, but it has many interesting controls and inspirations.
This is exactly what u looking for:
https://github.com/marshluca/AudioPlayer
You can also refer to some Sources :
https://github.com/lipka/LLACircularProgressView
I'm trying to let the users of my app cancel an active alarm using a slider, like the timer app or the iPhone lock screen.
Is this control available to us as developers? If so, what's the name of it, and do I need to add it programmatically? I do not see it in the interface builder.
Thank you!
You could always try this on cocoacontrols.
Slide to unlock control
There you go,
http://xcodenoobies.blogspot.com/2011/03/how-to-do-slide-to-unlock.html
It's not a standard control - you'll need to create it yourself.
However, I think you should be able to customize the slider control. You can change the look and feel of that by supplying your own graphics, and it should be easy to simulate the behavior of the lock slider (such as making it slide back to 0 if it doesn't get all the way across).
I want to create view in which when user use in portrait mode then two images scroll in scroll view and when user change mode as landscape then both image views add and become single view. I show this function in restoration hardware apps.I like that so i want to make my apps like that? how do that?
What you ask, is a simple implementation that I could do for you. But then again, you would't learn anything and you would probably come here and ask again. I won't give you the fish, I will show you a way of catching it. Check this tutorial, to learn how to handle rotation and then manipulate your views the way you want:
http://red-glasses.com/index.php/tutorials/iphone-auto-rotation-for-intermediate-developers-tutorial-1/
In my profile you have my personal email, after you learn that, if you need more help, count with me.
I am currently working on a game, which has a long story at its initial.
It just telling the user that what happened before the war that is the causes of war.
So, I wish to show all these things like a movie.
I used the MPMoviePlayerController for this, now I am facing the problem while hiding the controls. I don't want to show the controls to the user. It must be full screen video having no other controls on the screen. Also user have option to skip this by tapping the screen.
please suggest me if there is any way to do this.
Thanks in advance.
Set your MPMoviePlayerController's movieControlMode property to MPMovieControlModeHidden to disable the onscreen controls. I'm not sure how to make the movie skippable, though.
theMovie.movieControlMode = MPMovieControlModeHidden;
will diable all controls
as you probably know, the UIImagePickerController in the UIKit Framework allows the user to take a photo which is then handed over to my App for further processing.
If the property allowsEditing is set to YES, the user is allowed to move and scale the photo after taking it.
What I'd like to accomplish is to modify the photo in my code BEFORE the user is presented with the move and scale screen. This is because I'd like to add some visual effects to the photo and the user should be able to move and scale with these effects already applied to the photo.
I know that there's the cameraOverlayView property, but this is not useful in my case as far as I'm concerned.
Any ideas?
Thanks, Thomas
Not so easy way is to implement move and scale functionality on your own.
make showsCameraControls NO. You can design your own preview screen (with modified Image).
Looks like there are issues with touches in IOS5 cameraOverlayView. Make sure the above solution works for IOS5 also :).