Posted by
Eng.Ahmed AlSadi
Mar
29
Hi, iOS , objective-c , xcode Today i’ll show you the best way to drag and drop or move objects using touch events , i’ll use this two functions that you can implement them in any ViewController:
|
|
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event |
touchesBegan : will be active at the first moment of moving object , it’s will be active [...]
Posted by
Eng.Ahmed AlSadi
Mar
25
Hi; This function below is to merge two images UIImage and return UIImage , in the header file copy and past the function definition below: +(UIImage*)MergeImage:(UIImage*)img1 withImage:(UIImage*)img2;
Posted by
Eng.Ahmed AlSadi
Mar
8
how to build openCV for iOS iphone,ipad and iPod touch ” easy way ” if you want to build and install and use openCV in your iOS projects for iPhone, iPad or iPod Touch so you can use this link to do this and get opencv2.framework to add it in your project. but if [...]
Posted by
Eng.Ahmed AlSadi
Dec
26
xcode – iOS – objective-c Hi; How to make fade in or fade out animation for “or on” UIImageView object in Objective-c ” iOS” you want to use UIVew class and UIImageView object “myImage” 1- UIView : beginAnimations : context // to tell that the animation options will start !! 2- UIView setAnimationCurve // to [...]
Posted by
Eng.Ahmed AlSadi
Oct
13
xcode – iphone – objective-c Hi; the code below shows how to change UITableView ” table view ” cell or row height by using [ UITableView : heightForRowAtIndexPath ] ” Asks the delegate for the height to use for a row in a specified location “
Posted by
Eng.Ahmed AlSadi
Oct
13
xcode – iphone -objective-c Hi; to edit ” delete or select ” rows or cells of table view , you can use [ UITableView : setEditing ] “A Boolean value that determines whether the receiver is in editing mode”
Posted by
Eng.Ahmed AlSadi
Oct
13
xcode – iphone – objective-c Hi; if you want to know my way of deleting selected rows from table view so maybe you choose the easiest way to delete selected rows or cells from UITableView :
Posted by
Eng.Ahmed AlSadi
Oct
9
xcode – iphone – objective c Hi; the method “function” below is an example how to delete file using file manager “NSFileManager” [ NSFileManager : removeItemAtPath: error ] “Removes the file or directory at the specified path.” , you can use this method “function” to do this.
Posted by
Eng.Ahmed AlSadi
Oct
9
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”
Posted by
Eng.Ahmed AlSadi
Oct
7
xcode – iphone – objective c Hi; the line code below show how to get or parse file name from full path using [NSString : lastPathComponent]