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
| Ignore file changes | |
| git update-index --assume-unchanged <file> | |
| Undo | |
| git update-index --no-assume-unchanged <file> |
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
| Here is what you need to do to register your app for a custom URL scheme (for the example we will use a "myapp" scheme). | |
| 1) In your Info.plist, add a new entry for CFBundleURLTypes: | |
| <key>CFBundleURLTypes</key> | |
| <array> | |
| <dict> | |
| <key>CFBundleURLName</key> | |
| <string>MyApp's URL</string> | |
| <key>CFBundleURLSchemes</key> |
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)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender | |
| { | |
| if ([[segue identifier] isEqualToString:@"<#SEGUE_NAME#>"]) | |
| { | |
| TheViewController *vc = [segue destinationViewController]; | |
| [vc setObject:object]; | |
| } |
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) sendRequest { | |
| receivedData = [[NSMutableData alloc] init]; | |
| NSLog(@"Initial data length: %d",[receivedData length]); | |
| requestURL = [NSString stringWithFormat:@"<#URL HERE#>"]; | |
| NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; | |
| [request setURL:[NSURL URLWithString:requestURL]]; | |
| [request setHTTPMethod:@"GET"]; |
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
| #!/bin/sh | |
| # | |
| # myservice This shell script takes care of starting and stopping | |
| # the /home/webreports/report-listen | |
| # | |
| # Source function library | |
| . /etc/rc.d/init.d/functions | |
NewerOlder