Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm brand new to cocoa and objective c, I'm using xcode and trying to set up a basic interface with two textfields and a button and when the button is clicked I get the data input into the textfields. How do I get ahold of the textfields so i can get the text from them?
You would benefit from reading the cocoa tutorials on apple's website.
All you need to do is open your nib file and click the show assistant editor. Ctrl click the text field and drag it to the header file in the right window. Name the property and leave it as an outlet. This will create a property that you can use to access the text field.
You should link textField with property in you view, then you can call textField.text for getting text
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 months ago.
Improve this question
Can someone explain me how to reproduce the title bar of the app store, with an icon on the right that will disappear when scrolling down. And the title will be changing to inline display mode. You can find in attachment two pictures.
Thanks
Image 1
Image 2
Apple natively supports adding items to the navigation bar using navigationBarItems(...). To add an icon item to the right side of the header, use navigationBarItems(trailing:):
NavigationView {
ScrollView {
...
}
.navigationTitle("Title")
.navigationBarItems(trailing: MyIconView())
}
If you have trouble switching from the large header to inline header when scrolling, you may need to add navigationBarTitle(_:displayMode") instead:
// Replaces .navigationTitle(...)
.navigationBarTitle("Title", displayMode: .large)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
I don't understand what the second icon in the image below for an appointment. Does it mean something is wrong with the appointment?
Woo hoo. I found this. This is nothing but completed Recurring appointments.
Here are the repro steps:
Create a new appointment. Make it as a recurring one by setting "Recurrence"
Recurring Appointment screen will open. Save it
You will see "End series" button in command bar. Click & End it with "Complete" option
That's it, you will see this icon (I checked in Advanced find list)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a button in my windows phone app. When I am pressing it, its background color turns to yellow. How can I disable this feature, then instead of having a yellow color I want to see no change.
enter code here
Button btn = new Button();
thanks,Bahador
Either use Blend to edit the pressed state or override the theme accent brushes
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I am currently testing a web application and facing a problem. I need to know what type of cursor now to open the context menu. It's impossible to find an element that can be context (right mouse button) clicked on, I can only track the cursor type.
For example. if you move your cursor over a link it turns into a hand; or when you move your cursor over textfield it turns into "I". I need to know when the cursor has changed.
Do you have any ideas, how can I do this?
Selenium can only query things in your browser, and the cursor display is controlled by your OS.
The best I can suggest would be to check the CSS cursor attribute value using:
function String getElementCursorType(WebElement element) {
return element.getCssValue("cursor");
}
See http://www.w3schools.com/cssref/tryit.asp?filename=trycss_cursor for a list of possible return values and a live demo to see the actual cursor used by your system.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I develop a desktop application, and I'd like to add a "question mark" icon besides one of the textbox (that describes the meaning of that textbox).
My question is what's the common way to use the question mark:
Should I show the text when hovering on the question mark? e.g. using a tooltip?
Should I show the text just after clicking on the question mark?
Thank you!
I suggest you show the tooltip on hover. That is one click less for me as a user.
That aside another thing to consider while constructing a forms based user interface is to label the controls descriptively enough such that users don't need any further help beyond the component label. If the tooltip is your primary means of conveying the meaning of the control, you definitely have to rethink the form design. Basically don't use tooltips as an affordance, a placeholder with 2-3 words as additional description is a better first choice.
The only place where I see click to reveal tool-tips being really useful is in a touch interface.