Iphone right to left displaying [closed] - iphone

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am working on an arabic iphone application and I don't know how to display table view and other staff from right to left, any help please?

Have a look at this answer for how to display right to left text in a UILabel, which is the label class that is used throughout Cocoa touch, including in UITableView cells. You can create the right-to-left string like this (copy & pasted from linked answer):
NSString *str = "1. בבוקר"; //This could be any right-to-left string
NSString *directionalString = [#"\u200F" stringByAppendingString:str];
The unicode character U+200F is an invisible character that indicates the direction of the text, so you can use it at the start of the string to indicate that the text is right-to-left. Then, you can assign the string to wherever:
cell.textLabel.text = directionalString;

Related

Anyone find that UIDatePicker is not showing under iOS 14? [closed]

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 1 year ago.
Improve this question
I am trying to display date picker on button click. In iOS 13 that is working fine but when run on iOS 14 it is not showing.
I had the same issue. Go on your Storyboard and click on your calendar after go to Preferred Style attribute and change from Automatic (default value set by iOS 14) to Wheels. Now your calendar will show up again.

Swift 5.1: what is the correct code to hide UIButton? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have the new Xcode 11.4.1 with what I think is swift 5.1.
I am trying to hide a button (UIButton) with the known button.hidden=true / button.isHidden=true / button.alpha=0 but none seem to work.
I get the error
Value of type '(UIButton) -> ()' has no member 'isHidden'
same for hidden and alpha.
The button is defined:
#IBAction func submittedk(_ sender: UIButton){
code}
What is the correct code to hide buttons in this version? Thanks
You need to add IBOutlet of a button, not only an IBAction.
And then apply:
buttonOutlet.isHidden = true

Xcode 10.1 textField secureTextEntry [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
StoryBoard textField checked secureTextEntry, other textField all textFields are asking faceRecognition in iphone X, other lower version of iphones are working fine. Is that iphone x, bug or xcode bug ?
it's not a bug. you are going somewhere wrong.
in your viewDidLoad write this code:
MyTextField.isSecureTextEntry = true
or you can use attributes inspector -> Text Input Traits -> Secure Text Entry
it working fine on iPhone x.
Sorry guys i found solution. The problem is not xCode. iPhone x or greater iPhone
included feature of face recognition users have password auto fill settings. if enabled that settings that page textfield type password, secure textFiled entry and webView input type="password" that all page keyboard not showing language globe button. I think it was problem if username field is required Cyrillic.

Swift error: value of type "UIButton" has no member "text" [closed]

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 7 years ago.
Improve this question
Here is an error I'm getting on swift when I am just trying to put a simple command.
There is no text property on a UIButton. You have to use:
let label = UIButton()
label.setTitle(title: String?, forState:UIControlState)
If you check the UIButton documentation via option clicking the class, you can see the available functions that you can use.
UIButton doesn't have a text property. Instead, run setTitle:forState: on it, like this:
button.setTitle("My Title", forState: UIControlState.Normal)

Click desktop icon and doc item From transparent borderless window [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a borderless and transparent (alpha value is .5) NSwindow as shown in the image below. Now i have to click doc and desktop item from this window
i researched on google and can't find related to it
Can anybody tell me how can i achieve this.
below code is for creating NSWindow .
NSRect screenRect = [[NSScreen mainScreen]frame];
captureItFullWindow = [[CapTureFullWindow alloc] initWithContentRect:screenRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO ];
[captureItFullWindow setLevel:NSScreenSaverWindowLevel];
[captureItFullWindow makeKeyAndOrderFront:self];
[captureItFullWindow setOpaque:NO]; //Tells the window manager that the window might have transparent parts.
[captureItFullWindow setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.3]];
its too easy when i got the answer
only i have to set window mouse ignoring property
[self setIgnoresMouseEvents:YES];