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
| #include <CoreFoundation/CoreFoundation.h> | |
| int main(int argc, const char * argv[]) | |
| { | |
| CFStringRef string; | |
| string = CFStringCreateWithCString(kCFAllocatorDefault, | |
| "Core Foundation", | |
| kCFStringEncodingUTF8); | |
| printf("%ld\n",CFGetRetainCount(string)); | |
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
| #include <CoreFoundation/CoreFoundation.h> | |
| int main(int argc, const char * argv[]) | |
| { | |
| CFStringRef stringRef; | |
| stringRef = CFSTR("Hello, World!\n"); | |
| CFStringRef fruits[] = {CFSTR("Apple"), CFSTR("banana")}; | |
| CFArrayRef arrayRef; | |
| arrayRef = CFArrayCreate(kCFAllocatorDefault, |
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
| #include <CoreFoundation/CoreFoundation.h> | |
| int main(int argc, const char * argv[]) | |
| { | |
| CFShow(CFSTR("Hello, Core Foundation!\n")); | |
| return 0; | |
| } |
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 <AudioToolbox/AudioToolbox.h> | |
| - (void)play | |
| { | |
| AUGraph _AUGraph; | |
| OSStatus err; | |
| AudioUnit remoteIOUnit; | |
| AudioUnit audioPlayerUnit; | |
| AUNode audioPlayerNode, remoteOutputNode; |
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)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| self.view.backgroundColor = [UIColor blackColor]; | |
| [self action]; | |
| } | |
| - (void)action | |
| { | |
| //Create Content Layer |
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 <UIKit/UIKit.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| @autoreleasepool { | |
| UIView* superView = [[UIView alloc] initWithFrame:CGRectZero]; | |
| for(int i = 0; i < 10; i++){ | |
| UIView* view = [[UIView alloc] initWithFrame:CGRectZero]; | |
| [superView addSubview:view]; |
NewerOlder