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
| func amountDidChanged() { | |
| if isCardsAvailable { | |
| switch statusOfSubscription { | |
| case .disabledByUser: | |
| selectedState() | |
| break | |
| default: | |
| authorizeImageView.isHidden = true | |
| authorizeLabel.isHidden = true | |
| setEnabledState(value: true) |
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
| // ========================================================================= | |
| // MARK: - Home Screen Quick Action | |
| func application(application: UIApplication, performActionForShortcutItem shortcutItem: UIApplicationShortcutItem, completionHandler: (Bool) -> Void) { | |
| switch shortcutItem.type { | |
| case "com.game.share": | |
| let items = ["Check out the simple & very challenging game! #Hurtle", | |
| NSURL(string: "https://itunes.apple.com/in/app/hurtle/id1085122455?mt=8")! | |
| ] |
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
| for(var i = 1;i<=5;i += 1){ | |
| let textureName = "outer\(i)" | |
| texturearray.append(SKTexture(imageNamed: textureName)) | |
| if(texturearray.count>0){ | |
| outer = SKSpriteNode(imageNamed: "outer1") |
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
| #import <UIKit/UIKit.h> | |
| #import "MWFeedParser.h" | |
| @protocol HeaderViewDelegate <NSObject> | |
| @end | |
| @interface HeaderView : UIView <UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,MWFeedParserDelegate> | |
| { |
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
| #import <UIKit/UIKit.h> | |
| #import "MWFeedParser.h" | |
| @protocol HeaderViewDelegate <NSObject> | |
| @end | |
| @interface HeaderView : UIView <UIScrollViewDelegate,MWFeedParserDelegate> | |
| { |
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
| #import <UIKit/UIKit.h> | |
| @protocol HeaderViewDelegate <NSObject> | |
| @end | |
| @interface HeaderView : UIView <UIScrollViewDelegate> | |
| @property (nonatomic, weak) id <HeaderViewDelegate> delegate; | |
| @property (nonatomic, assign) BOOL isExpanded; |
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
| #import "VideosViewController.h" | |
| #import "JSONModelLib.h" | |
| #import "VideoModel.h" | |
| #import "MainTableViewCell.h" | |
| #import <SDWebImage/UIImageView+WebCache.h> | |
| @interface VideosViewController () | |
| { | |
| NSArray* videos; |
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
| #import <UIKit/UIKit.h> | |
| #import "MWFeedParser.h" | |
| @interface DetailViewController : UIViewController | |
| { | |
| UIWebView *webView; | |
| } | |
| @property (retain, nonatomic) IBOutlet UIWebView *webView; | |
| @property (assign,nonatomic) MWFeedItem *item; |
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)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| DetailViewController *DetailController = [[DetailViewController alloc] init]; | |
| DetailController.item = (MWFeedItem *)[itemsToDisplay objectAtIndex:indexPath.row]; | |
| //transfering control to detail view | |
| [[self navigationController] pushViewController:DetailController animated:YES]; | |
| [self.tableView deselectRowAtIndexPath:indexPath animated:NO]; |
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
| #import "NNPDetailViewController.h" | |
| #import "AFHTTPRequestOperationManager.h" | |
| @interface NNPDetailViewController () | |
| @end | |
| @implementation NNPDetailViewController | |
| @synthesize item1; | |
| @synthesize delegate = _delegate; |