39 lines
992 B
Objective-C
39 lines
992 B
Objective-C
//
|
|
// EspagramAddWordToLessonViewController.h
|
|
// Espagram
|
|
//
|
|
// Created by Abel Fokkinga on 11/14/12.
|
|
// Copyright (c) 2012 Abel Fokkinga. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@class EspagramAddWordToLessonViewController;
|
|
@protocol EspagramAddWordToLessonViewControllerDelegate
|
|
|
|
- (void) addWord:(NSString *)word withMeaning:(NSString *)meaning;
|
|
|
|
- (void) cancelAddingWord;
|
|
|
|
- (NSString *) searchWordMeaning:(NSString *)word;
|
|
|
|
@end
|
|
|
|
@interface EspagramAddWordToLessonViewController : UIViewController
|
|
|
|
@property (weak, nonatomic) IBOutlet UILabel *wordLabel;
|
|
|
|
@property (weak, nonatomic) IBOutlet UILabel *meaningLabel;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *addButton;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *cancelButton;
|
|
|
|
@property (weak, nonatomic) IBOutlet UITextField *wordInputText;
|
|
|
|
@property (weak, nonatomic) IBOutlet UITextField *meaningInputText;
|
|
|
|
@property (nonatomic,strong) id <EspagramAddWordToLessonViewControllerDelegate> dataSource;
|
|
|
|
@end
|