Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions VENCalculatorInputView/VENCalculatorInputView.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@
@property (strong, nonatomic) UIColor *operationButtonBackgroundColor;
@property (strong, nonatomic) UIColor *operationButtonBorderColor;


- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)bundleOrNil;

@end
10 changes: 8 additions & 2 deletions VENCalculatorInputView/VENCalculatorInputView.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ @interface VENCalculatorInputView ()

@implementation VENCalculatorInputView

- (id)initWithFrame:(CGRect)frame {
self = [[[NSBundle bundleForClass:[self class]] loadNibNamed:@"VENCalculatorInputView" owner:self options:nil] firstObject];
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)bundleOrNil {
if (!nibNameOrNil) {
nibNameOrNil = @"VENCalculatorInputView";
}
if (!bundleOrNil) {
[NSBundle bundleForClass:[self class]];
}
self = [[bundleOrNil loadNibNamed: nibNameOrNil owner:self options:nil] firstObject];
if (self) {
// Set default locale
self.locale = [NSLocale currentLocale];
Expand Down