Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-29-2009, 03:27 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 19
Question Call takePicture?

Hi, i want to write a method to call - (void)takePicture but the problem is this

I have created a picker object (with the proper source type) but the problem is this…

I need to call that method, i'm guessing that it needs to be called on the picker object… [picker takePicture]; but the method needs to be outside the pickers method..

So i've got this

-(IBAction)takePict {

//Set up picker with sourcetype of camera
}


-(void) takePictureMethod {
// this is where i'm stuck
}

Thanks
Steake is offline   Reply With Quote
Old 10-29-2009, 06:42 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 19
Default

Quote:
Originally Posted by Steake View Post
Hi, i want to write a method to call - (void)takePicture but the problem is this

I have created a picker object (with the proper source type) but the problem is this…

I need to call that method, i'm guessing that it needs to be called on the picker object… [picker takePicture]; but the method needs to be outside the pickers method..

So i've got this

-(IBAction)takePict {

//Set up picker with sourcetype of camera
}


-(void) takePictureMethod {
// this is where i'm stuck
}

Thanks

Bump.
Steake is offline   Reply With Quote
Old 10-31-2009, 06:51 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 19
Default

Bumping for help here? Please help you guys....
Steake is offline   Reply With Quote
Old 02-08-2010, 01:20 AM   #4 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 4
Default

Quote:
Originally Posted by Steake View Post
Bump.
Use The Delegate of UIIMagePickerControll
That Is - (void)imagePickerControllerUIImagePickerControll er *)picker didFinishPickingMediaWithInfoNSDictionary *)info
umer sufyan is offline   Reply With Quote
Old 02-08-2010, 01:28 AM   #5 (permalink)
Dr. Touch Cocoa Helpdesk
iPhone Dev SDK Supporter
 
Join Date: Sep 2008
Location: Vienna, Austria
Posts: 537
Send a message via AIM to Oliver Drobnik Send a message via MSN to Oliver Drobnik Send a message via Skype™ to Oliver Drobnik
Default

Quote:
Originally Posted by Steake View Post
I need to call that method, i'm guessing that it needs to be called on the picker object… [picker takePicture]; but the method needs to be outside the pickers method..
any method defined in the documentation can becalled from outside by [pointerToInstance method];

So you probably just need to get a pointer to the image picker, which is easy, because you are instantiating it to show it.
__________________
regards

Oliver Drobnik
Cocoanetics - Our DNA is programmed in Objective-C.

Linguan – makes localizing strings file fun!

Cocoanetics Parts Store – easy to use yet professionally looking components that you can use to spruce up your own apps. Augmented Reality, Calendar Control, Pin Lock or Purchase Button are only some examples. You get full source code, no static library crap, and lifetime support. Check it out today!
Oliver Drobnik is offline   Reply With Quote
Old 02-18-2010, 06:46 AM   #6 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 1
Default

First you need to

assign Camera as UIImagePicker Source
then delegate method
then calling a function to open shutter
then take picture
mohit2305 is offline   Reply With Quote
Old 02-22-2010, 04:56 PM   #7 (permalink)
Registered Member
 
Join Date: Feb 2010
Location: Rochester, NY
Posts: 11
Default

Quote:
Originally Posted by mohit2305 View Post
First you need to

assign Camera as UIImagePicker Source
then delegate method
then calling a function to open shutter
then take picture
I'm trying to do basically the same thing as the original post. For some reason, when I call takePicture, I can't get at the picture that was captured.

The following method never seems to get called:

Code:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
	printf("Did finish picking with info");
	
	[picker release];
}
Is there something that needs to happen to get this method to be called once the picture is taken? Currently I have the method typed in my code, but that is it. I don't see it being "linked" to anything else.
dr_carmster is offline   Reply With Quote
Old 08-05-2010, 05:37 PM   #8 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 1
Default

Quote:
Originally Posted by mohit2305 View Post
First you need to

assign Camera as UIImagePicker Source
then delegate method
then calling a function to open shutter
then take picture
Hi,

I am having a problem with the use of takePicture method on an iphone. I am basically trying to take pictures using the -(void)takePicture method. However, I could not find a good tutorial that explains how to do this. I am new to the iphone app development.

Currently, what I have is a view controller which

creates a picker controller,
sets the picker controller's properties (sourcetype, toolbarhidden, etc.)
creates an overlay view and assigns it to the picker (picker.cameraOverlayView = overlay).
sets the delegate to self
and shows the picker with [self presentModalViewControllericker animated:NO].
On the overlayed view, I have a button. When this button is called, it is supposed to activate the camera's takePicture method. However, I am not sure how to call the picker pointer from inside the overlay view. I'd appreciate any source code examples, but pseudo-code is welcome as well.

Thanks, K.
Hero is offline   Reply With Quote
Old 11-18-2010, 02:09 AM   #9 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 10
Default

assign Camera as UIImagePicker Source
then delegate method
then calling a function to open shutter
then take picture

Hi I am new to this as well and for some reasons I can't get the takePicture method working for my iphone app. Can anyone help please?Thanks
__________________
Apple store : enemy of friend ?
iphone casino
sebastien is offline   Reply With Quote
Reply

Bookmarks

Tags
hacks, objective-c, steake, uiimagepicker, uiview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 259
23 members and 236 guests
@sandris, ADY, Dani77, diyora, FAED, fredidf, F_Bryant, GHuebner, HDshot, iDifferent, JasonR, mer10, Oral B, prchn4christ, Rudy, smithdale87, Speed, spiderguy84, stekki, tgjorgoski, Touchmint, twerner, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,753
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:07 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0