본문 바로가기

iPhone dev.

mysql ALTER 명령어 ALTER TABLE `events` ADD `test` TEXT NOT NULL AFTER `imgpath`위 명령어는 events table에 test(TEXT)라는 column을 imgpath column 뒤에 넣는 명령어이다.ALTER TABLE `events` rename `test1` `test2` TEXT NOT NULL위 명령어는 events table의 test1 column의 이름을 test2로 바꿔준다. 더보기
Cyclic한 import 해결(xcode unknown type name) stackoverflow.com 참조: 요약하자면 .h에서는 @class로 선언만 해주고 .m에서 실제로 #import하라는 얘기이다. 4down votefavoriteshare [g+]share [fb]share [tw]I got code like this:Match.h:#import #import "player.h" @interface Match : NSObject { Player *firstPlayer; } @property (nonatomic, retain) Player *firstPlayer; @end Player.h:#import #import "game.h" @interface Player : NSObject { } - (Player *) init; //- (NSInteger)numberOf.. 더보기
How to get table list of sqlite in iphone stackoverflow.com 참조: How to get list of all the tables in sqlite database in my application up vote0down votefavorite share [g+]share [fb]share [tw] I am creating a Sqlite database using terminal and integrating this database in my application. I need to get list of all the tables in the database. I know that in the terminal .tables displays list of all the tables in database but how do I do th.. 더보기
TableViewCell Default Font Default font size of UITableViewCell up vote7down votefavorite 1 share [g+]share [fb]share [tw] Anybody knows the default font size of UITableViewCell? iphone objective-c uitableviewcell link|improve this question edited Feb 7 '11 at 23:38 gearsdigital 2,198517 asked Feb 7 '11 at 23:10 fatih 193111 53% accept rate Why is this being downvoted? Sure, there's "RTFM", but it is a legitimate question.. 더보기
Push 에러 관련 : Apple Push Notification: Failed to register with error: Error Domain=NSCocoaErrorDomain Apple Push Notification: Failed to register with error: Error Domain=NSCocoaErrorDomain I’m currently working on getting Push Notifications to work in my test application using Urban Airship’s service and got this message: Failed to register with error: Error Domain=NSCocoaErrorDomain Code=3000 UserInfo=0x117520 "no valid 'aps-environment' entitlement string found for application" I searched the.. 더보기
Objective C 에서 sha512 사용하기 1. This function will hash a string using SHA512. The resulting string is a hex representation of the hash: + (NSString *) createSHA512:(NSString *)source { const char *s = [source cStringUsingEncoding:NSASCIIStringEncoding]; NSData *keyData = [NSData dataWithBytes:s length:strlen(s)]; uint8_t digest[CC_SHA512_DIGEST_LENGTH] = {0}; CC_SHA512(keyData.bytes, keyData.length, digest); NSData *out = .. 더보기
UITableViewController를 UIViewController로 바꿀 때 참고 다음의 링크에서 참조함http://www.spriing.co.uk/blog/2011/uitableviewcontroller-is-a-waste-of-space/ UITableViewController is a waste of spaceposted by Mark Corbyn | 26/03/2011 | Mobile Apps | 1 comment The UITableViewController generated by Xcode is far too restrictive, here’s why… In every app we’ve developed that has required a UITableView, the data has come from a remote source. Of course, this means w.. 더보기
ASIHTTP를 이용한 request/response 홈페이지: http://allseeing-i.com/ASIHTTPRequest/ 여기 들어가면 웬만한 구현방법에 대한 설명이 다 나와있음. ASIHTTPRequest란 Xcode 개발시 사용할 수 있는 wrapper로 사용자가 따로 설정해야 하는 복잡한 부분을 많이 줄여준 느낌이다. (사실 따로 뭘 설정해줘야 되는지는 잘 모른다) 더보기
[iPhone 개발] Push 구현(Mac에서 PHP로) Certificate와 관련해서는 다음을 참조: http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/ PHP 코드와 관련해서는 다음을 참조: Done. 더보기
UIView를 UIImage로 캡쳐하기 예제) #import - (UIImage*)captureView:(UIView *)view { CGRect rect = [[UIScreen mainScreen] bounds]; UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); [view.layer renderInContext:context]; UIImage *img = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return img; } - (void)saveScreenshotToPhotosAlbum:(UIView *)view { UIImageWrit.. 더보기