A:
Change your question to look like this:
If I have a pdf file in a class, can I create an image from that file and use it as a button for a website?
That should get you started.
Q:
Recording login screen on iOS
I have a problem in recording my own login screen.
I have a login screen, but I don't have the user image.
So, I need to record the image of login screen, but i don't know how.
A:
You can do this by making a UIView with alpha set to 0.0 (effectively transparent), and having your login code set the background color of this view to your desired colour.
This is what a view with background colour set to green looks like with alpha set to 0.0:
So, when the user clicks the button, you simply set the background color to whatever colour you want, and animate the alpha back to 0.0 to remove the effect.
A:
To get a screen recording of a login screen, you have to install a screen capture app on your iPhone.
You can't record UI stuff by just capturing the screen.
Besides, the screen capture feature that you need is very limited and not convenient.
For example:
1. You can't click the buttons or input some text
2. If you have more than one screen to record, you can only record one at a time.
3. You can't capture the login screen UI when you install a custom application to your iPhone.
A:
A different approach is to capture a screenshot of the screen after you have logged in.
Use the below code to capture the image.
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Another one is is to implement UIImagePickerControllerDelegate and use its UIImagePickerControllerDidCancel method to dismiss the picker. You can then capture the image and display that on the screen.
Q:
How to achieve this kind of scrolling with text fields in Android
I have a layout like this: be359ba680
Related links:
Commentaires