IOS-camara
Upcoming SlideShare
Loading in...5
×
 

IOS-camara

on

  • 276 views

IOS-camara

IOS-camara

Statistics

Views

Total Views
276
Views on SlideShare
276
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    IOS-camara IOS-camara Presentation Transcript

    • IOS Cámara
    • Arquitectura IOS • Basada en capas. ▫ Cocoa Touch ▫ Media ▫ Core Services ▫ Core OS
    • ARQUITECTURA DE COCOA-TOUCH • Esta arquitectura (Modelo-Vista-Controlador) separa los datos, interfaz de usuario y lógica de control en tres componentes. Para el caso del iOS SDK podemos ver la arquitectura de la siguiente manera : CoreData (Modelo) UIView (Vista) UIViewController (Controlador)
    • UIImagePickerController • Para acceder a las imágenes guardadas en el dispositivo o capturar imágenes desde un iPhone se utilizara el controlador UIImagePickerController. Esta clase controla la interface de usuario y retorna el mensaje una vez terminada su utilización.
    • Código de agregar elementos: #import <UIKit/UIKit.h> @interface ViewController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate> { UIImageView *imagenView; UIButton *abrirGaleria; UIButton *tomarFoto; } @property (nonatomic, retain) IBOutlet UIImageView *imagenView; @property (nonatomic, retain) IBOutlet UIButton *abrirGaleria; @property (nonatomic, retain) IBOutlet UIButton *tomarFoto; - (IBAction)abrirGaleria:(id)sender; - (IBAction)tomarFoto:(id)sender; @end
    • Crear interfaz y enlazar:
    • Crear interfaz y enlazar:
    • Funciones declaradas previamente #import "ViewController.h" @implementation ViewController @synthesize imagenView, abrirGaleria, tomarFoto; - (IBAction)abrirGaleria:(id)sender {…..} - (IBAction)tomarFoto:(id)sender {…..}
    • Cerrar - (void)dealloc { [imagenView release]; [abrirGaleria release]; [tomarFoto release]; [super dealloc]; }