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
{ | |
"transparent": "allowing light to shine through", | |
"opaque": "hard to see through", | |
"unpredictable": "volatile", | |
"evolution": "gradual development over time", | |
"learn": "aquire new knowlege or skills", | |
"nest": "fit one object inside another", | |
"demo": { | |
"x": 25, | |
"y": 12.2, |
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
/* | |
* Creative Coding | |
* Week 3, 02 - array with sin() | |
* by Indae Hwang and Jon McCormack | |
* Copyright (c) 2014 Monash University | |
* | |
* This program demonstrates the use of arrays. | |
* It creates three arrays that store the y-position, speed and phase of some oscillating circles. | |
* You can change the number of circles by changing the value of num in setup() | |
* You can change the background colour by holding the left mouse button and dragging. |
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
- (IBAction)tapOnce:(UITapGestureRecognizer *)sender { | |
if ([[self tools] isHidden]) { | |
[[self tools] setHidden:NO]; | |
} | |
else { | |
[[self tools] setHidden:YES]; |
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
[self performSegueWithIdentifier:@"<#segueID#>" sender:sender]; |
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
NSString *jsreturn = [self.mainWebView stringByEvaluatingJavaScriptFromString:@"<#script#>"]; | |
NSLog(@"jsreturn = %@",jsreturn); |
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
NSString *path = [[NSBundle mainBundle] pathForResource:@"<#index#>" ofType:@"<#html#>" inDirectory:@"<#www#>"]; | |
NSURL *fileURL = [NSURL fileURLWithPath:path]; | |
NSURLRequest *request = [NSURLRequest requestWithURL:fileURL]; | |
NSLog(@"%@",fileURL); | |
[self.mainWebView loadRequest:request]; |
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
-(IBAction)returnToPrevious:(UIStoryboardSegue*)sender { | |
} |
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
// This how to make a background image for the table view | |
// you must also make the cell background colour clear in the story board | |
//in table view controller header file - and obtained by ctrl/right dragging imageview to the .h file | |
@property (strong, nonatomic) IBOutlet UIImageView *backImage; | |
//in table view controller implementation (.m) file and in viewDidLoad method: |