Skip to content

Instantly share code, notes, and snippets.

View amannayak0007's full-sized avatar
🏠
Working from home

Aman Jain amannayak0007

🏠
Working from home
View GitHub Profile
func amountDidChanged() {
if isCardsAvailable {
switch statusOfSubscription {
case .disabledByUser:
selectedState()
break
default:
authorizeImageView.isHidden = true
authorizeLabel.isHidden = true
setEnabledState(value: true)
// =========================================================================
// 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")!
]
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")
#import <UIKit/UIKit.h>
#import "MWFeedParser.h"
@protocol HeaderViewDelegate <NSObject>
@end
@interface HeaderView : UIView <UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,MWFeedParserDelegate>
{
#import <UIKit/UIKit.h>
#import "MWFeedParser.h"
@protocol HeaderViewDelegate <NSObject>
@end
@interface HeaderView : UIView <UIScrollViewDelegate,MWFeedParserDelegate>
{
#import <UIKit/UIKit.h>
@protocol HeaderViewDelegate <NSObject>
@end
@interface HeaderView : UIView <UIScrollViewDelegate>
@property (nonatomic, weak) id <HeaderViewDelegate> delegate;
@property (nonatomic, assign) BOOL isExpanded;
#import "VideosViewController.h"
#import "JSONModelLib.h"
#import "VideoModel.h"
#import "MainTableViewCell.h"
#import <SDWebImage/UIImageView+WebCache.h>
@interface VideosViewController ()
{
NSArray* videos;
#import <UIKit/UIKit.h>
#import "MWFeedParser.h"
@interface DetailViewController : UIViewController
{
UIWebView *webView;
}
@property (retain, nonatomic) IBOutlet UIWebView *webView;
@property (assign,nonatomic) MWFeedItem *item;
- (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];
#import "NNPDetailViewController.h"
#import "AFHTTPRequestOperationManager.h"
@interface NNPDetailViewController ()
@end
@implementation NNPDetailViewController
@synthesize item1;
@synthesize delegate = _delegate;