sing1006 -5 Light Poster

im new in objective c.i have come out with the getter and setter but not sure is correct or not.

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

@property(nonatomic, retain) NSString *myText;
@property(nonatomic, copy) NSNumber *opacity;
@property(nonatomic, assign) id delegate;



#import "ViewController.h"

@interface ViewController ()


@implementation ViewController

@synthesize myText;
@synthesize opacity;
@synthesize delegate;

    return myText;

    return opacity;

    return delegate;

-(void)setMyText:(NSString *)_myText{

    [myText release];
    myText=[_myText retain];


-(void)setOpacity:(NSNumber *)_opacity{
    if (opacity!=_opacity) {
        [opacity release];
        opacity=[_opacity copy];


- (void)viewDidLoad
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.


- (void)didReceiveMemoryWarning
    [super didReceiveMemoryWarning];

    // Dispose of any resources that can be recreated.