This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
UINavigationController *nav = (UINavigationController *)self.window.rootViewController; | |
NotesListViewController *list = (NotesListViewController *)[nav topViewController]; | |
list.notesManager = [NotesManager new]; | |
// Override point for customization after application launch. | |
return YES; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)testLoginButtonTapped | |
{ | |
// mock a Server | |
id serverMock = OCMClassMock([Server class]); | |
OCMStub([serverMock loginUserWithName:[OCMArg any] password:[OCMArg any]]).andReturn(YES); | |
_loginVC.serverToUse = serverMock; | |
// simulate input in name field | |
_loginVC.userTextField.text = @"foo"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)testLoginButtonTapped | |
{ | |
// mock a Server | |
id serverMock = OCMClassMock([Server class]); | |
OCMStub([serverMock loginUserWithName:[OCMArg any] password:[OCMArg any]]).andReturn(YES); | |
_loginVC.serverToUse = serverMock; | |
// simulate input in name field | |
_loginVC.userTextField.text = @"foo"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PLYTableView.m | |
// ProdlyApp | |
// | |
// Created by Oliver Drobnik on 08/01/15. | |
// Copyright (c) 2015 ProductLayer. All rights reserved. | |
// | |
#import "PLYTableView.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewWillAppear:(BOOL)animated | |
{ | |
[super viewWillAppear:animated]; | |
// workaround for iPhone 6+ bug | |
if (self.traitCollection.displayScale==3) | |
{ | |
CGSize windowSize = [UIScreen mainScreen].bounds.size; | |
CGSize viewSize = self.view.bounds.size; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary: | |
If you install an extension via Extension Builder and modify something, the changes are ignored if you remove and reinstall the extension. | |
Steps to Reproduce: | |
1. Add the Reload.safariextension (from developer sample code) in Extension Builder | |
2. Click install | |
3. Note the shown Version to be 1.0. | |
4. Modify Bundle version, shown version and description | |
5. Click deinstall, then click install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pod 'OBImagePicker', :git => 'https://github.com/openbakery/OBImagePicker.git', :branch => 'develop' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSArray *filters = [CIFilter filterNamesInCategory:kCICategoryGenerator]; | |
NSLog(@"%@", filters); | |
result: | |
<__NSArrayI 0x7ffb63863520>( | |
CIAztecCodeGenerator, | |
CICheckerboardGenerator, | |
CICode128BarcodeGenerator, | |
CIConstantColorGenerator, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction)handleTap:(id)sender | |
{ | |
BOOL isHiding = !_statusBarHidden; | |
_statusBarHidden = isHiding; | |
[UIView animateWithDuration:UINavigationControllerHideShowBarDuration delay:0 options:0 | |
animations:^{ | |
[self setNeedsStatusBarAppearanceUpdate]; | |
} | |
completion:NULL]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.manning.com/drobnik/?a_aid=cocoanetics&a_bid=f92809ec |