Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor bugfix for UIView.frame region

Signed-off-by: fladdict <fukatsu@gmail.com>
  • Loading branch information...
commit f39265c5a5e0154eb4992009598baab6e863d8eb 1 parent 0dabc28
@fladdict authored
View
13 AAMButtons/classes/AAMConfirmButton.h
@@ -0,0 +1,13 @@
+//
+// AAMConfirmButton.h
+// AAMButtons
+//
+// Created by 深津 貴之 on 12/02/26.
+// Copyright (c) 2012年 Art & Mobile. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AAMConfirmButton : UIView
+
+@end
View
31 AAMButtons/classes/AAMConfirmButton.m
@@ -0,0 +1,31 @@
+//
+// AAMConfirmButton.m
+// AAMButtons
+//
+// Created by 深津 貴之 on 12/02/26.
+// Copyright (c) 2012年 Art & Mobile. All rights reserved.
+//
+
+#import "AAMConfirmButton.h"
+
+@implementation AAMConfirmButton
+
+- (id)initWithFrame:(CGRect)frame
+{
+ self = [super initWithFrame:frame];
+ if (self) {
+ // Initialization code
+ }
+ return self;
+}
+
+/*
+// Only override drawRect: if you perform custom drawing.
+// An empty implementation adversely affects performance during animation.
+- (void)drawRect:(CGRect)rect
+{
+ // Drawing code
+}
+*/
+
+@end
View
13 AAMButtons/classes/AAMFlipLabel.h
@@ -0,0 +1,13 @@
+//
+// AAMFlipLabel.h
+// AAMButtons
+//
+// Created by 深津 貴之 on 12/02/26.
+// Copyright (c) 2012年 Art & Mobile. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AAMFlipLabel : UIView
+
+@end
View
31 AAMButtons/classes/AAMFlipLabel.m
@@ -0,0 +1,31 @@
+//
+// AAMFlipLabel.m
+// AAMButtons
+//
+// Created by 深津 貴之 on 12/02/26.
+// Copyright (c) 2012年 Art & Mobile. All rights reserved.
+//
+
+#import "AAMFlipLabel.h"
+
+@implementation AAMFlipLabel
+
+- (id)initWithFrame:(CGRect)frame
+{
+ self = [super initWithFrame:frame];
+ if (self) {
+ // Initialization code
+ }
+ return self;
+}
+
+/*
+// Only override drawRect: if you perform custom drawing.
+// An empty implementation adversely affects performance during animation.
+- (void)drawRect:(CGRect)rect
+{
+ // Drawing code
+}
+*/
+
+@end
View
3  AAMButtons/classes/AAMSlideLock.m
@@ -28,7 +28,7 @@ -(id)initWithTrackView:(UIView*)theTrack ThumbView:(UIView*)theThumb
}
-(id)initWithTrackView:(UIView*)theTrack ThumbView:(UIView*)theThumb backgroundView:(UIView*)theBackground{
- self = [super initWithFrame:theTrack.bounds];
+ self = [super initWithFrame:theBackground.bounds];
if(self){
isDragging = NO;
isLocked = YES;
@@ -36,6 +36,7 @@ -(id)initWithTrackView:(UIView*)theTrack ThumbView:(UIView*)theThumb backgroundV
[self addSubview:theBackground];
[self addSubview:theTrack];
[self addSubview:theThumb];
+
theTrack.userInteractionEnabled = NO;
theThumb.userInteractionEnabled = NO;
theBackground.userInteractionEnabled = NO;
Please sign in to comment.
Something went wrong with that request. Please try again.