how to do signature in iphone app using a textfield [duplicate] - iphone

This question already has answers here:
IOS: draw a line with your finger
(1 answer)
Capturing signatures in an iOS app
(2 answers)
Closed 9 years ago.
I have app in which i want that user sign the signature for contract as we normmally sign on paper so is there any way we can implement that signature user can do with finger as we normally do in documents.

You should do with the basic drawing feature available in iOS using
CGContextAddQuadCurveToPoint
Then take the image and then add to the field. Its good to have an ImageView on the place where you want to sign the same.

Related

Swift - Put Red Dot on iPhone App Icon [duplicate]

This question already has answers here:
Badge on App Icon in Iphone App
(2 answers)
Closed 6 years ago.
Any ideas how to apply a red dot to the iPhone App icon - like the Mail or Messages' Icon with the number of unread messages in it?
Try this:
Swift 2:
UIApplication.sharedApplication().applicationIconBadgeNumber = 1// or you value
Hope this helps!

iOS 7: Is it possible to make UIView's background transparent to show the blurred background? [duplicate]

This question already has answers here:
How to set all the backgrounds transparent so that the home screen could be seen?
(2 answers)
Closed 9 years ago.
I ask this question after seeing apps like Reminders or Safari's tab view using this.
As you can see there is a translucency between the app and the home screen. Is there anyway to achieve this in iOS 7? Is it a private api?
No such luck sadly - it's a private API.

Need command to show fingers (two circle) in IOS simulator [duplicate]

This question already has answers here:
How to mimic two-finger scroll/drag gesture on ios simulator?
(7 answers)
Closed 9 years ago.
I am a blackberry developer. I'm new to IOS. I need to check for pinch events on IOS simulator. I googled it and saw images of two circles. Can you please tell me how I will get swipe (pinch or 2 circle) so that I can check my code?
Please give me any command, for example cmd+shift+2.
I am checking on iPad 6.0 simulator.
Use the option key on your keyboard. This will create two circles on the screen to indicate and mimic a two finger tap and pinch.
I think you hold the command key when you click on the simulator. Might be Option though.

Changing a color depending on iPhone colour [duplicate]

This question already has answers here:
Detecting Color of iPhone/iPad/iPod touch?
(6 answers)
Closed 9 years ago.
I've been working a lot on my new project's colour scheme and concluded that one scheme is the best for use on the white iPhone while a different set should be used on the black one.
How can I specify different picture files to be used on the device depending on its colour?
Unless you can get access to the SN of the phone along with the apple database dicating the color of each phone this won't be possible.
I would recommend instead giving the user an option so that they can pick to change the color scheme of your app.

Make objects "shake" on iPhone [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
how to create iphone's wobbling icon effect?
I'm trying to figure out how to make objects "shake" like when you hold down your finger on apps in the homescreen, so you can move them around and put them in folders.
How can I achieve this?
The Three20 Launcher has this exact function. It's an opensource iOS framework, you could download it, run a demo project and replicate or use their implementation.