IOS 5 and telnet
Install Mobile terminal (IOS 5) 1. Go to terminal. 2. Enter “su root” then your password. 3. Type “apt-get install telnet” when terminal ask yes or no type [Y]. 4. You have successful install Telnet on...
View ArticleIOS String Format Specifiers
Table 1 Format specifiers supported by the NSString formatting methods and CFString formatting functions Specifier Description %@ Objective-C object, printed as the string returned by...
View ArticleBasic Objective-C
IBOutlet IBOutlet เป็นการประกาศให้ IB ( interface builder ) รับรู้ว่า ตัวแปรนี้ สามารถเชื่อมต่อเข้ากับ Object ใน nib , xib ได้ พูดอีกในทางหนึ่งได้ว่า IBOutlet จะเป็นตัวแทนของ Object ที่เราได้ออกแบบใน...
View ArticleARC error when declaring delegate ivar
With ARC and iPhone Simulator 5.0 the following seems to work just fine (no warnings, etc…): SomeObject.h @class SomeObject; @protocol SomeObjectDelegate <NSObject> -...
View ArticleIOS: get UnixTimeStamp
- (NSTimeInterval)getUnixTimeStamp { NSDateComponents *comps = [[NSCalendar currentCalendar] components:NSDayCalendarUnit | NSYearCalendarUnit | NSMonthCalendarUnit | NSHourCalendarUnit |...
View Articleแก้ปัญหา UIWebView ไม่ทำงานกับ URL ภาษาไทยด้วย Encoding URL NSString บน iOS
การทำงานกับ UIWebView เมื่อ url มีภาษาอื่นร่วมด้วย UIWebView จะไม่ทำงาน ทางแก้คือ Encode ด้วย UTF8 ที่ไฟล์ NSString+URLEncoding.h #import @interface NSString (URLEncoding) -(NSString...
View ArticleIOS App implement iTunes built-in App “File Sharing” feature
In the new Xcode, you can do this in the UI: 1. Select your project in top left 2. Select target in next column 3. Click on Info tab 4. In Custom iOS Target Properties, hover mouse over any row and...
View Articleแนวทางแก้ปัญหา libc++abi.dylib: terminating with uncaught exception of type...
หลายครั้งเมื่อเราต้องเจอกับ error : libc++abi.dylib: terminating with uncaught exception of type NSException ในขั้นแรกที่เจอกับปัญหานี้อย่าเพิ่งตกใจให้ดูก่อนว่าปัญหาเกิดจากอะไรจากนั้นให้ เลื่อน Debug...
View Article