Posted by
Eng.Ahmed AlSadi
Oct
7
xcode – iPhone – Objective c if you have file path and want to get file extension you can use [NSString : pathExtension] “Interprets the receiver as a path and returns the receiver’s extension, if any.” , “myFile.txt” will return “txt”
Posted by
Eng.Ahmed AlSadi
Oct
6
xcode – iphone – objective c Hi; the method “function” below show you how to get array of files of iTunes sharing folder with full path , you can do this by appending document directory path to file name.
Posted by
Eng.Ahmed AlSadi
Oct
6
xcode – iphone – objective c Hi; How to Enable iTunes “folder” file sharing: some times you want to enable iTunes file sharing ; it’s easy , select project –> info –> Custom iOS Target Properties –> add new row and select “Application supports iTunes file sharing” with value “YES” , now you can see [...]
Posted by
Eng.Ahmed AlSadi
Sep
28
Xcode – iphone – objective c Hi, to get index of selected section and row of table view UITableView , you want to add UITableViewDelegate protocol and UITableViewDataSource protocol to use table view easily then implement [ tableview : didSelectRowAtIndexPath ] method .
Posted by
Eng.Ahmed AlSadi
Sep
28
Xcode – iphone – objective c Hi, to edit table view UITableView you can easily use [UITableView : setEditing: animated]; this method set table edit mode on and off suppose you have button named ” UIButton* EditButton ” with title @”Edit” , and you want to make it the edit button of UITableView , this [...]
Posted by
Eng.Ahmed AlSadi
Sep
26
XCode – iphone – objective-c Hi; this sample -Example- cover How to send SMS from iPhone programmatically using MFMessageComposeViewController
Posted by
Eng.Ahmed AlSadi
Sep
22
xcode – Objective-c Hi; To convert C String ” char* ” to objective-c string ” NSString ” you can easily use [ NSString : initWithUTF8String ] which returns an NSString object initialized by copying the characters a given C array of UTF8-encoded bytes .
Posted by
Eng.Ahmed AlSadi
Sep
21
xcode – objective-c ; Hi; Unix timestamp can be 32-bit or 64-bit , so , in case of 32-bit you can use you can use NSTimeInterval = 32-bit time but in case of 64-bit timestamp you will use NSTimeInterval = (64-bit time/1000000)-62135596800
Posted by
Eng.Ahmed AlSadi
Sep
21
Xcode – Objective-c Hi; You know that objective-c can use c functions , and c functions don’t understand objective-c objects , so if you want to use any C function requires char* –> that means the function argument requires is c-string , you can get it from objective-c string “NSString” using [ NSString : UTF8String [...]
Posted by
Eng.Ahmed AlSadi
Sep
21
Xcode – objective-c -iphone source code; Hi, iPhone iOS embedded sqlite3 , first thing you should do to use sqlite3 API is to add it to your project , so in your project select the main root of project from project navigator and go to “Build Phases” then expand “Link Binary With Libraries” then click [...]