NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectoryPath = [paths objectAtIndex:0];
NSString *secondaryDirectoryPath = [documentsDirectoryPath stringByAppendingPathComponent:@"secondary"];
NSString *databaseFile = [secondaryDirectoryPath stringByAppendingPathComponent:@"database.db"];
NSFileManager *fileManager = [NSFileManager defaultManager];
[fileManager removeItemAtPath:databaseFile error:NULL];
Oh! iPhonemad
Thursday, February 17, 2011
UIWebView disable scrolling
1. objc
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,0,320,480)];
[[[webView subviews] lastObject] setScrollEnabled:NO];
2. javascript
document.onload = function(){
document.ontouchmove = function(e){ e.preventDefault(); }
};
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,0,320,480)];
[[[webView subviews] lastObject] setScrollEnabled:NO];
2. javascript
document.onload = function(){
document.ontouchmove = function(e){ e.preventDefault(); }
};
Thursday, January 27, 2011
[Private]My Goal for Cross Development
1. Cross Platform(Titanium)*
2. Javascript
3. JQuery
4. C
5. Business Model
2. Javascript
3. JQuery
4. C
5. Business Model
[Private]My Goal for iPhone
1. JSON Parser
2. XML Parser
3. CoreData & DB Access(local & remote)
4. Socket
5. Thread
6. File upload & download & caching(with progress bar)
7. Cookie
8. NSURLConnection
2. XML Parser
3. CoreData & DB Access(local & remote)
4. Socket
5. Thread
6. File upload & download & caching(with progress bar)
7. Cookie
8. NSURLConnection
Wednesday, January 26, 2011
[Basic]Hightlight effect button
When you touch the button, it will give the glow effect to the button.
[button setShowsTouchWhenHighlighted:YES];
[button setShowsTouchWhenHighlighted:YES];
Subscribe to:
Posts (Atom)