Solution: You can easily take screenshots in the simulator.Just open the simulator and click command+S it will take screenshot in your simulator. Captured screenshot will be saved in the desktop on our Mac.
Solution: We had an option that will compare single array with its object's all are equal or different. In that we can use "Set" function like below. Code: let myArrayA = [1,2,3] let myArrayB = [1,1,1] If(Set(myArrayA).count == myArrayA.count) { print("different") } else { print("same") } If(Set(myArrayB).count == myArrayB.count) { print("different") } else { print("same") } The first one returns different and the second one returns same...Happy coding....
Solution: You can use copywithzone function to create new entire nsobject and return it to your other class.You just call the NSObject.copy to get the entire copied object in iOS. If you did before creating this method it will be crashed.If you use the above method you will be easily handle the copy of our nsobject. Objective C: Declare the method in .h file and implement it in .m file to access it in anywhere.. -(id)copyWithZone:(NSZone *)zone { }
Solution: In clear if you did aceView background color set to white then that issue will come. In clear you have to do clear the patharray,Undosteps,Redosteps and also clear the background color. You must have to set the backgroundcolor as clear color.After that issue will be resolved
Solution: You can use touch gesture as well as pan gesture in a single view.Scroll view used for zoom then you can just add one line that will say pan gesture for 2taps required. You can add pan gesture with two touches in scrollView with number of taps required = 2.Then if you touch with single finger it will act as touch.If you use two fingers then it will act as pan gesture...
Solution: You can define only the values that contains single element.You cannot be able to define NSArray using define in Objective C. So better you can use the values in local variable.