This file contains 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
@interface AppDelegate() | |
@property (nonatomic, assign) NSUncaughtExceptionHandler *crashHandler1; | |
@property (nonatomic, assign) NSUncaughtExceptionHandler *crashHandler2; | |
@end | |
@implementation AppDelegate | |
AppDelegate *cSelf; |
This file contains 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 instabug(gestureRecognizer: UIGestureRecognizer) { | |
if gestureRecognizer.state = .recognized { | |
Instabug.invoke(with: .newBug) | |
} | |
} |
This file contains 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
echo "Committing the build number..." | |
cd "${PROJECT_DIR}";git add "Focus List/Focus List-Info.plist" | |
cd "${PROJECT_DIR}";git commit -m "Bumping build number." | |
cd "${PROJECT_DIR}";git push origin HEAD | |
echo "Build number committed." | |
echo "Tagging the Archive..." | |
versionnum=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
buildnum=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
tagnumber="$versionnum-$buildnum" |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="apple-itunes-app" content="app-id=504979585, app-argument=http://zoboon.com/merchants/view/3"> | |
<title>Twitter</title> | |
</head> | |
<body> | |
<p>This opens a discover item in the app</p> | |
</body> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="apple-itunes-app" content="app-id=504979585, app-argument=http://zoboon.com/share/offer/2392"> | |
<title>Twitter</title> | |
</head> | |
<body> | |
<p>This opens a discover item in the app</p> | |
</body> |
This file contains 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
NSMutableString *string = [@"جمهورية مصر العربيه" mutableCopy]; | |
CFStringTransform((__bridge CFMutableStringRef)string, NULL, kCFStringTransformToLatin, NO); | |
NSLog(@"%@", string); | |
// Outputs jmhwryẗ mṣr ạlʿrbyh |
This file contains 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::Spec.new do |s| | |
s.name = 'MKStoreKit-cop' | |
s.version = '5.0' | |
s.license = { :type => 'MIT', | |
:text => 'MKStoreKit uses MIT Licensing And so all of my source code can | |
be used royalty-free into your app. Just make sure that you don’t | |
remove the copyright notice from the source code if you make your | |
app open source and in the about page.' } | |
s.summary = 'In-App Purchases StoreKit for iOS devices.' | |
s.homepage = 'https://github.com/Coppertino/MKStoreKit' |
This file contains 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
// | |
// HMHTTPClient.h | |
// | |
// Created by Hesham Abd-Elmegid on 4/10/13. | |
// Copyright (c) 2013 Startappz. All rights reserved. | |
// | |
#import "AFHTTPClient.h" | |
@interface HMHTTPClient : AFHTTPClient |
This file contains 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 <Foundation/Foundation.h> | |
#import "Contact.h" | |
@interface AddressBookManager : NSObject | |
+ (NSString *)nameForContactWithPhoneNumber:(NSString *)phoneNumber; | |
+ (UIImage *)photoForContactWithPhoneNumber:(NSString *)phoneNumber; | |
@end |
This file contains 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 <Foundation/Foundation.h> | |
@interface NSObject (NSDictionaryRepresentation) | |
/** | |
Returns an NSDictionary containing the properties of an object that are not nil. | |
*/ | |
- (NSDictionary *)dictionaryRepresentation; | |
@end |