Contact us is at the extreme bottom of the page, at the far right. Close to Report Bug and News.You really need to scroll till the bottom of the page.
Post
Replies
Boosts
Views
Activity
Can you explain precisely what you want ? The title is not made to formulate the full question.Do you know how to set imageView ?In the button IBAction, just add the following myimageView.image = UIImage(named: "SomeImage")
Well, I thought you wanted to keep info only on your app windows.If your app is not running, you cannot have control on windows that are not from your app.Otherwise, have a look at this:https://stackoverflow.com/questions/47480873/set-the-size-and-position-of-all-windows-on-the-screen-in-swift
Thanks for feedback. If ever you get an answer…And don't forget to close the thread.
With help from// https://stackoverflow.com/questions/29528661/ ios-detect-current-size-classes-on-viewdidloadI did the following:enum DeviceTraitStatus {
///IPAD and others: Width: Regular, Height: Regular
case wR
case wC
case hR
case hC
case wRhR
///Any IPHONE Portrait Width: Compact, Height: Regular
case wChR
///IPHONE Plus/Max Landscape Width: Regular, Height: Compact
case wRhC
///IPHONE landscape Width: Compact, Height: Compact
case wChC
static var current:DeviceTraitStatus {
switch (UIScreen.main.traitCollection.horizontalSizeClass, UIScreen.main.traitCollection.verticalSizeClass){
case (UIUserInterfaceSizeClass.regular, UIUserInterfaceSizeClass.unspecified):
return .wR
case (UIUserInterfaceSizeClass.compact, UIUserInterfaceSizeClass.unspecified):
return .wC
case (UIUserInterfaceSizeClass.unspecified, UIUserInterfaceSizeClass.regular):
return .hR
case (UIUserInterfaceSizeClass.unspecified, UIUserInterfaceSizeClass.compact):
return .hC
case (UIUserInterfaceSizeClass.regular, UIUserInterfaceSizeClass.regular):
return .wRhR
case (UIUserInterfaceSizeClass.compact, UIUserInterfaceSizeClass.regular):
return .wChR
case (UIUserInterfaceSizeClass.regular, UIUserInterfaceSizeClass.compact):
return .wRhC
case (UIUserInterfaceSizeClass.compact, UIUserInterfaceSizeClass.compact):
return .wChC
default:
return .wChR
}
}
}Then you can use as follows: let dts = DeviceTraitStatus.current
if dts == .wChR { //
stackViewBottomConstraint.constant = 0
} else {
stackViewBottomConstraint.constant = 62
}
Why don't you remove directly in Interface Builder ?Have you defined an IBOutlet for the menuBar ? @IBOutlet weak fileprivate var menuBar: NSMenu!
I cannot find any reference to getInitialPostitionOfCursorWithRange in documentation.Where is this func defined ?
Not sure of this, but wonder if that could be the cause: textField.text = updatedString;
[self moveCursorToPosition:initialCursorPostition]; //Line 311 in the codeyou change the textFieldthen you moveCursor (relative to textField.text)I wonder if this does not change some var in memory, causing the crash, unless this is due to setSelectedTextRange.Note: could not find func setSelectedTextRange
Does your program crash ?If so, how are you sure it crashes here ?How are targets defined ?Is it a sceneKit class ?You should give more context information.
Maybe you'll find a solution and an explanation in this thread:https://stackoverflow.com/questions/35577317/uidatepicker-flips-on-ios9-rtl[Not tested myself] You can force all UIDatePicker classes to be RTL from the AppDelegate.if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"9.0")) {
[[UIView appearanceWhenContainedIn:[UIDatePicker class], nil] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft];
}
I once had this problem too.A solution is provide here.https://forums.developer.apple.com/thread/126970Thanks to feedback if that works for you.
Does it happens only on one button with a specific image ?Did you try changing the image ?I would try also to test some attributes.- select the image in the assets- open its attributes inspector- try to change render mode to default or template- try to change sxales to single scale
Did you update the info.plist ?have a look hereh ttps://www.appcoda.com/macos-status-bar-apps/
I miss something.in pickerView titleForRow, you use items[row] as data source.But I do not see where you set items in getItems. Maybe in intemInfo (probably itemInfo mispelled), but you do not show the func.something like: items = []
for document in snap!.documents {
let data = document.data()
let itemCode = data[ITEMS_CODE] as? String ?? ""
let itemName = data[ITEMS_NAME] as? String ?? ""
items.append(itemName) // Unless done in intemInfo ?
let t = intemInfo(itemCode: itemCode, itemName: itemName)
self.itemsClass.append(t)
//print(document.data())
print("ITEMS_CODE", itemCode as Any)
print("ITEMS_NAME", itemName as Any)
}
So, if you are not sure, try not to block.