Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
// ELCOverlayImageView.m
// ELCImagePickerDemo
//
// Created by Seamus on 14-7-11.
// Copyright (c) 2014 年 ELC Technologies. All rights reserved.
//
#import "ELCOverlayImageView.h"
#import "ELCConsole.h"
@implementation ELCOverlayImageView
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
}
return self;
}
- (void)setIndex:(int)_index
{
self.labIndex.text = [NSString stringWithFormat:@"%d",_index];
}
- (void)dealloc
{
self.labIndex = nil;
}
- (id)initWithImage:(UIImage *)image
{
self = [super init];
if (self) {
UIImageView *img = [[UIImageView alloc] initWithImage:image];
[self addSubview:img];