From 333b7fb38153ae90bcbcc1348c8db698ba207331 Mon Sep 17 00:00:00 2001 From: siqi Date: Fri, 12 Jul 2013 17:57:40 +0200 Subject: add autoresize storyboard to repo Change-Id: I8e9d5a30799fe61df7e7ac235abcbee77f598da2 --- ios/iosremote/ic_launcher@2x.psd | Bin 0 -> 58981 bytes .../UserInterfaceState.xcuserstate | Bin 74014 -> 74317 bytes ios/iosremote/iosremote/UIViewTransitionCategory.h | 13 + ios/iosremote/iosremote/UIViewTransitionCategory.m | 33 + .../iosremote/en.lproj/iPhone_autoSize.storyboard | 678 +++++++++++++++++++++ ios/iosremote/iosremote/ic_launcher.png | Bin 0 -> 8596 bytes ios/iosremote/iosremote/ic_launcher@2x.png | Bin 0 -> 16827 bytes 7 files changed, 724 insertions(+) create mode 100644 ios/iosremote/ic_launcher@2x.psd create mode 100644 ios/iosremote/iosremote/UIViewTransitionCategory.h create mode 100644 ios/iosremote/iosremote/UIViewTransitionCategory.m create mode 100644 ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard create mode 100644 ios/iosremote/iosremote/ic_launcher.png create mode 100644 ios/iosremote/iosremote/ic_launcher@2x.png diff --git a/ios/iosremote/ic_launcher@2x.psd b/ios/iosremote/ic_launcher@2x.psd new file mode 100644 index 000000000000..2b8023b7943e Binary files /dev/null and b/ios/iosremote/ic_launcher@2x.psd differ diff --git a/ios/iosremote/iosremote.xcodeproj/project.xcworkspace/xcuserdata/siqi.xcuserdatad/UserInterfaceState.xcuserstate b/ios/iosremote/iosremote.xcodeproj/project.xcworkspace/xcuserdata/siqi.xcuserdatad/UserInterfaceState.xcuserstate index 4d8f14bad5c0..e3e428c69168 100644 Binary files a/ios/iosremote/iosremote.xcodeproj/project.xcworkspace/xcuserdata/siqi.xcuserdatad/UserInterfaceState.xcuserstate and b/ios/iosremote/iosremote.xcodeproj/project.xcworkspace/xcuserdata/siqi.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ios/iosremote/iosremote/UIViewTransitionCategory.h b/ios/iosremote/iosremote/UIViewTransitionCategory.h new file mode 100644 index 000000000000..6cf8fbd47f48 --- /dev/null +++ b/ios/iosremote/iosremote/UIViewTransitionCategory.h @@ -0,0 +1,13 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#import + +@interface UIView (Transition) +-(void)fadeInfadeOutwithDuration:(double)duration maxAlpha:(double)maxAlpha; +@end \ No newline at end of file diff --git a/ios/iosremote/iosremote/UIViewTransitionCategory.m b/ios/iosremote/iosremote/UIViewTransitionCategory.m new file mode 100644 index 000000000000..44df1465932c --- /dev/null +++ b/ios/iosremote/iosremote/UIViewTransitionCategory.m @@ -0,0 +1,33 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#import "UIViewTransitionCategory.h" + +@implementation UIView(Transition) +-(void)fadeInfadeOutwithDuration:(double)duration maxAlpha:(double)maxAlpha +{ + if (self.isHidden){ + [self setHidden:NO]; + self.alpha = 0.0; + [UIView animateWithDuration:duration animations:^{ + self.alpha = maxAlpha; + } completion:^(BOOL finished) { + if (!finished) { + [self setHidden:NO]; + } + }]; + } else { + self.alpha = maxAlpha; + [UIView animateWithDuration:duration animations:^{ + self.alpha = 0.0f; + } completion:^(BOOL finished) { + [self setHidden:YES]; + }]; + } +} +@end \ No newline at end of file diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard new file mode 100644 index 000000000000..1867d814c55d --- /dev/null +++ b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard @@ -0,0 +1,678 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios/iosremote/iosremote/ic_launcher.png b/ios/iosremote/iosremote/ic_launcher.png new file mode 100644 index 000000000000..3de2dcc88be7 Binary files /dev/null and b/ios/iosremote/iosremote/ic_launcher.png differ diff --git a/ios/iosremote/iosremote/ic_launcher@2x.png b/ios/iosremote/iosremote/ic_launcher@2x.png new file mode 100644 index 000000000000..e336ce037b6d Binary files /dev/null and b/ios/iosremote/iosremote/ic_launcher@2x.png differ -- cgit