I want to create a custom UITextField like the one shown in image1 but I am only able to create the boxes like in image2. Can anybody help how to perform these in UITextField:
1) to set the starting of text after some space (see image1)
2) to set the corners to rounded rectangle shape (see image1)


Have a look at these 2 methods: