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 <AFNetworking.h> | |
@interface UIImageView (AFNetworkingFadeInAdditions) | |
- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage fadeInWithDuration:(CGFloat)duration; | |
@end |
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 "AVPlayer+MOAdditions.h" | |
#include <CoreMedia/CMBase.h> | |
#import "AVPlayerItem+MOAdditions.h" | |
@implementation AVPlayer (MOAdditions) | |
- (NSURL *)currentURL { | |
AVAsset *asset = self.currentItem.asset; | |
if ([asset isMemberOfClass:[AVURLAsset class]]) | |
return ((AVURLAsset *)asset).URL; |
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 java.util.HashMap; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentActivity; | |
import android.support.v4.app.FragmentTransaction; | |
import android.view.View; | |
import android.widget.TabHost; | |
import android.widget.TabHost.OnTabChangeListener; |
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
#define SYNTHESIZE_SINGLETON_FOR_CLASS_WITH_CUSTOM_METHOD_NAME(classname, methodname) \ | |
\ | |
static classname *shared##classname = nil; \ | |
\ | |
+ (classname *)methodname \ | |
{ \ | |
@synchronized(self) \ | |
{ \ | |
if (shared##classname == nil) \ | |
{ \ |
NewerOlder