How to make a good profile view - iphone

I've created a vue called profile in wich I put labels that I've named (frist name, family name,adress,etc etc) and for each label there is a textield,
so my idea is to display on the textfield by default for example : enter your first name, enter your family name etc etc, so that once we click on the textfield , the keyboard get displayed.
Is there anybody who can help please ??

my opinion is use tableview for get input from the user
use this tableviewcell to tableview which will look awesome follow this tutorial
http://www.icodeblog.com/2011/01/04/elctextfieldcell-a-useful-tableviewcell-for-forms/

Related

How do I display data/information with Matlab App Designer?

I would like to display some information to the user via Matlab App Designer's GUI. I am new to this program and can't seem to find a widget that provides what I feel should be a simple function. Am I missing something? Examples would include showing the user:
The path of the file that he/she selected
Errors such as "No files detected" that are printed in a Matlab script called on by the GUI code.
Other print statements in code such as "Done!", etc that will inform the user when a process is complete.
Is there a way to capture the output in the Matlab command line and report these in a window of some sort in the GUI? Thanks in advance!
You can use a TextArea to display information for the user. Here's how I made a simple example:
Drag a button to the app in design view.
Drag in a text area also. I changed the label to Feedback.
Select the button and use the Callbacks tab in the bottom right of app designer to add a callback with the default name it gives you.
Edit the callback to contain
answer = 'what your want to display';
app.FeedbackTextArea.Value = answer;
When you push the button the text area gets filled. In your code, instead of just setting 'answer' to some string, set a variable using whatever code is dealing with your user's information. The key is to store what you want the user to see in a variable and then assign that to the "Value" parameter of the text area or other widget where you want them to see the results.

GroupedTableView in iphone

i want to create a grouptableview for my application in which some section are editable and some are checkedmark can any body tell me in details to how i do this ,
i want to put content in row like 'placeholder in textbox'.
I have tried many times and search in google bt i m nt getting any idea please help to out this issues.
i want to create grouptableview like this image for my application.
!Screen shot
If you want to edit the content of cell, you have to add UITextField/UITextView to the cell. You can very well assign a placeHolder for the UITextField/UITextView. Refer this SO Post.
For check mark you can use default cell by toggling its accessoryType between UITableViewCellAccessoryCheckmark and UITableViewCellAccessoryNone.
based on your noofsections you can create the no of groups.

How to a clickable url / email / phone number on UITextView

I am receiving a server response as a sting that can contain some url or email address or phone number ie same string can have all three of them or one number and couple of url. Nothing is fixed.
I am using UITextView to show this sting on device. Now what I want is these url/email/phone number show up as hyperlink and on clicking these hyperlink user should be able to see a webpage if its a url, draft and send an email if its email address or call the number when clicked on number hyper link
Can anyone suggest me a way to do this. Or suggest any other data view to be used which can make things easy
Set the data detector types of your UITextView. There are a number of options:
UIDataDetectorTypePhoneNumber
UIDataDetectorTypeLink
UIDataDetectorTypeAddress
UIDataDetectorTypeCalendarEvent
UIDataDetectorTypeNone
UIDataDetectorTypeAll
So, in your case, you'd probably like to do:
self.myTextView.dataDetectorTypes = UIDataDetectorTypeAll;
Also note that the textview should not be editable when you use NSDataDetectorTypes.
Let textView be an object for UITextView, then set:
textView.editable = NO;
then only it can detect the links, phone numbers, address etc.
Add a UITextView in Interface Builder. No code needed. In Attributes Inspector, uncheck "Editable" and do check "Selectable". Do check "Phone Number" beside Data Detectors. Should work for other data types. DO be sure to edit the "Hint color" or else it may appear as no label is there (but you can still touch to launch). (Its a beautiful world, if you look at it the right way!)
You could use an UIButton, and change the title into the URL, email or phone number.
Create a custom UIButton with the corresponding format to make it look like a normal sentence (the edges and background of the button have the same color as the background of the view).
Format the text to make it look blue (and optionally underlined) like this so people know it's a hyperlink.

How Remember Me for email id Works

I have created one Login Screen where user enter their mail id.
But i want to insert one functionality where it should list the mail id automatically when user type first character of mail id
There is one way. I don't know how much feasible it is. So the Idea is : You can store somewhere all the email id after log in success. For example in sqlite database. Now, Implement Notification center for "UITextFieldTextDidChangeNotification" and search for the character in database when user start typing in TextField and show UITableview underneath UITextField with match results (which start from entered character).
When user tap on any cell of Tablview hide tableview and take that cell label value in UITextField. That's it. Hope this logic work.
You can save the emaid id in UserDefaults & use it whereever you want

accessoryButton with Instruments automation

I'm writing some automation .js file, and I need to tap one of my accessoryButton from one cell.
How can I send the tap message to it ?
This is a custom cell, but the accessoryButton is added by iOS, not by me, and I don't know wich name it has.
Also in the docs I couldn't find anything ...
I have the cell referenced correcly as I can change the textField value for example.
Thanks in advance,
regards
I would take a look at the buttons property on your UIATableCell. That should give you the buttons in your cell and you can probably get to the accessoryButton from there. UIATableCell does not seem to have a specific property for the accessoryButton (cf. here).
Source: Apple UIAElement Documentation