openCameraRoll and openCamera help (possibly an AlertView question)
note: this is my first post on here, i apologize if this is the wrong forum to post this type of question in.
I am having trouble with opening the camera or opening stored photos through my app.
I have a feature where the user can add items to a "log" to record images and notes. In the left corner there is an icon that when pressed opens a menu with buttons that say "open photos' or "open camera". "Open photos" is supposed to send the user to their camera roll and "open camera" sends opens the actual camera on the phone.
When i use this code:
if (buttonIndex == 1){
[self openCameraRoll];
}
else if (buttonIndex == 2){
[self openCamera];
The buttons work, but I have it creates a bug in another part of the app. When i use this code:
if (buttonIndex == 1 && alertView.tag == 1){
[self openCameraRoll];
}
else if (buttonIndex == 2 && alertView.tag == 1){
[self openCamera];
The buttons do not work, but that other bug goes away.
So my question is: do I need to declare alertViewAdd.tag = 1 somewhere else? if so, where?
Im a rookie, but i can take criticism. Thanks for any help!!
|