Kaydet (Commit) b7072fce authored tarafından siqi's avatar siqi

adapt to various screen size

Change-Id: Iada6a992adead516c92cef9162b883679ba016f8
üst 67fdf8bf
......@@ -14,6 +14,7 @@
- (IBAction)previousSlideAction:(id)sender;
- (IBAction)pointerAction:(id)sender;
@property (weak, nonatomic) IBOutlet UIView *notesView;
@property (weak, nonatomic) IBOutlet UIWebView *lecturer_notes;
@property (weak, nonatomic) IBOutlet UIImageView *slideView;
@property (weak, nonatomic) IBOutlet UIImageView *secondarySlideView;
......
......@@ -11,6 +11,7 @@
#import "CommunicationManager.h"
#import "CommandInterpreter.h"
#import "CommandTransmitter.h"
#import <QuartzCore/QuartzCore.h>
@interface slideShow_vc ()
......@@ -86,6 +87,20 @@
usingBlock:^(NSNotification *note) {
[self.navigationController popViewControllerAnimated:YES];
}];
self.slideView.layer.shadowColor = [[UIColor blackColor] CGColor];
self.slideView.layer.shadowOpacity = 0.5;
self.slideView.layer.shadowRadius = 4.0;
self.slideView.layer.shadowOffset = CGSizeMake(3.0f, 3.0f);
self.slideView.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.slideView.bounds].CGPath;
self.slideView.clipsToBounds = NO;
self.secondarySlideView.layer.shadowColor = [[UIColor blackColor] CGColor];
self.secondarySlideView.layer.shadowOpacity = 0.5;
self.secondarySlideView.layer.shadowRadius = 4.0;
self.secondarySlideView.layer.shadowOffset = CGSizeMake(3.0f, 3.0f);
self.secondarySlideView.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.secondarySlideView.bounds].CGPath;
self.secondarySlideView.clipsToBounds = NO;
[super viewDidAppear:animated];
}
......@@ -108,8 +123,8 @@
[self setLecturer_notes:nil];
[self setSlideView:nil];
[self setSlideNumber:nil];
[self setToolBar:nil];
[self setSecondarySlideView:nil];
[self setNotesView:nil];
[super viewDidUnload];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment