xcode – iphone – objective c Hi; the example below show how to delete all rows cells from table view , but note that you must remove all objects of using array , and then use [UITableView : reloadData] “Reloads the rows and sections of the receiver”

Objective c parse file name from path

xcode – iphone – objective c Hi; the line code below show how to get or parse file name from full path using [NSString : lastPathComponent]

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”

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.

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 […]

objective c table view index of selected row cell

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 .

objective c iPhone edit table view

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 […]

objective c iPhone send sms

XCode – iphone – objective-c Hi; this sample -Example- cover How to send SMS from iPhone programmatically using MFMessageComposeViewController

Objective c char* to NSString

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 .

objective c unix timestamp

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