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
1. sencha -sdk /path/to/Sencha Touch SDK/touch-x.x.x generate app /path/to/app/<AppFolder> <AppName> | |
2. sencha phonegap init <app bundle id> <AppName> | |
3. sencha app build -run native |
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
We got serveral way to archive this: | |
1. [[currentView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; | |
2. Using loop: | |
for(UIView *subview in [currentView subviews]) { | |
[subview removeFromSuperview]; | |
} |
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
Hide status bar iOS 7 | |
adding "View controller-based status bar appearance" = NO to plist |
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
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString: url]]; | |
AFHTTPRequestOperation *requestOperation = [[AFHTTPRequestOperation alloc] initWithRequest: request]; | |
requestOperation.responseSerializer = [AFImageResponseSerializer serializer]; | |
[requestOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { | |
//NSLog(@"Response: %@", responseObject); | |
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
NSString *documents = [paths objectAtIndex:0]; | |
NSString *finalPath = [docum |
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
1. Open Terminal, then goto this folder: cd ~/Library/Developer/Xcode/Archives | |
2. Perform delete all folders and files: rm -rf * | |
You may need root permission to perform delete. |
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
{ | |
"country": "Australia", | |
"iso_country": "AU", | |
"price_unit": "USD", | |
"outbound_sms_prices": [ | |
{ | |
"mcc": "505", | |
"mnc": "1", | |
"carrier": "Telstra", | |
"prices": [ |
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
SELECT zip, primary_city, | |
latitude, longitude, distance | |
FROM ( | |
SELECT z.zip, | |
z.primary_city, | |
z.latitude, z.longitude, | |
p.radius, | |
p.distance_unit | |
* DEGREES(ACOS(COS(RADIANS(p.latpoint)) | |
* COS(RADIANS(z.latitude)) |
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
<log4net debug="true"> | |
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> | |
<file value="logs\serverlog" /> | |
<appendToFile value="true" /> | |
<datePattern value="_yyyy.MM.dd".log"" /> | |
<preserveLogFileNameExtension value="true"/> | |
<rollingStyle value="Composite" /> | |
<maxSizeRollBackups value="-1" /> | |
<maximumFileSize value="5MB" /> | |
<staticLogFileName value="false" /> |
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
URL Template: | |
http://itunes.apple.com/<country code>/lookup/?id=<app_id> | |
Ex: http://itunes.apple.com/us/lookup/?id=1149226616 |
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
~/Library/Developer/Xcode/DerivedData |
OlderNewer