How to take picture by touch on the screen/camera live feed using UIImageview In iOS - ios6

I am writing a camera application in iOS using phonegap/cordova
I am overlaying image using camera overlay function in camera live feed. The code is below.
UIImageView *overlay=[[UIImageView alloc]initiwithImage[UIImage imageNamed:#"camera.jpg"]];
Picker.overlay=overlay;
pickerController.overlay=overlay;
How to take a picture if I touch or click or tap on screen/ camera Live feed in iOS programatically using UITapGestureRecognizer
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]
initWithTarget:self action:#selector(ClickEventOnImage:)];
[tap setNumberOfTouchesRequired:2];
[tap setDelegate:self];
//Don't forget to set the userInteractionEnabled to YES, by default It's NO.
overlay.userInteractionEnabled = YES;
[overlay addGestureRecognizer:tap];
-(void)ClickEventOnImage:(id)sender
{
NSlog(#"tapRegonise");
}
I am able to see output in my console as tapRegoniser.
but instead i want to take a picture on that tap
For example how camera works in Nokia Lumia Phone's by pressing any where on screen it click a picture.

got the answer
plz refer to WWDC 2010 videos (421 part in side Incorporating the Camera and Photo Library in your App)

Related

how to detect samsung virtual buttons

I made my app responsive using react native responsive screen and using widthPercentageToDP as wp, heightPercentageToDP as hp and using these persentage values to scale across all devices and for most devices that seems to do the trick however when it comes to samsung specific devices that use onscreen buttons eg s8 s9 s10 note series etc it doesn't seem to detect the onscreen buttons and some content ends up being hidden
for example on all the pixel phones the screen height ends at the on screen buttons but when it comes to these samsung devices it seems like it doesn't knew there even there
Each component from my applications has a View that uses a
someStyle: {
flex: 1
}
Some of them do not have that style but their parent does.

How to implement like result after capture screen shot on IOS 11

On IOS 11 After capture screen shot..We will see a floating windows contain result image of screen show and it's can drag, move around screen and on top all app and all screen?
How can I custom a view ..which same result like image bellow

Navigate through big image

I have a big image with coordinate points.
I need to navigate through these points by pressing onscreen buttons.
Only a part of image is seen on the screen at once (shows your location).
By pressing arrow button the view moves to the next part of the same image.
This example looks good.
Please, suggest any way to implement this functionality in Codename One App
Thank You.
You can use the Map component but you can place any image as a label icon within a scrollable container and just let the user use the touch/keys to scroll.

how to display the latest captured video thumbnail beside my capture button in camera app ios

I am building a camera based app. In this app I am able to display the latest captured image thumbnail beside the capture button. Now how to do the same with the video thumbnail, I mean how to display the latest captured video thumbnail beside my capture button in camera ios. Thanks in advance.
Assuming that you are enumerating the assets using an enumeration block -
For the assets that you are enumerating, check the property key ALAssetPropertyType in your enumeration block like this:
if([asset valueForProperty: ALAssetPropertyType] == ALAssetTypeVideo){
CGImageRef thumbnailVidoeImageRef = [asset thumbnail];
// Do what you want with this CGImageRef. Convert to UIImage etc.
}

iPhone5 migration: black bar between tabbar and content view

I try to migrate an app to iPhone5/iOS6.
I have already successfully migrated some apps with basic recommandation (-568h#2x).
BUT for this app, a black bar appears between the bottom toolbar and the middle of the screen (Cf. attached image).
Normally, the black bar should be filled with the tableview...
Of course, I have correctly set the tableview constraint in Interface Builder...
I fixed the pb... was not directly an iPhone5 issue but a bad usage of the new dimension from 1 component of my app... :(

Resources