Skip to content

Instantly share code, notes, and snippets.

View vietbuiminh's full-sized avatar
🌾
rice-fed

Viet Bui vietbuiminh

🌾
rice-fed
View GitHub Profile

Schedule Visualizer

from CSC-305 Business team with ❤️

#import "XYZPerson.h"
@implementation nsstringifelse
NSString *sourceString = @"Four score and seven years ago";
NSRange range = [sourceString rangeOfString:@"seven"];
//NOTE NSRange IS NOT AN OBJECTIVE_C CLASS
if (range.location == NSNotFound) {
// Well the string was not found
} else {
@vietbuiminh
vietbuiminh / LrnCoObjc.m
Last active August 29, 2015 14:27
This code made by my brother :))
#import "XYZPerson.h"
@implementation XYZPerson
- (void)sayHello {
NSLog(@"Hello, world!");
}
@end
@vietbuiminh
vietbuiminh / helloworld.h
Created July 29, 2015 15:45
Try Objective c "Hello World"
//Try-Objective-C-by-Viet.
//|......................|
//"This is the hello world Objective C"
@interface Hello : NSObject
//the void to say
- (void) say;
@end
//The implementation to work the hello world object
#include <stdio.h>
int main() {
int number[10];
/*populate the array*/
number[0] = 10;
number[1] = 20;
number[2] = 30;
number[3] = 40;
number[4] = 50;