Search results for

column

2,052 results found

Post

Replies

Boosts

Views

Activity

How to preserve UICollectionView scroll position when rotating
I am using UICollectionView to populate almost 30 cells.In portrait mode on iPhone there is only one column i.e. one cell lauout & in landscape mode there is two columns i.e. two cells horizontally layout at given point of time.Scrolling is vertical.But when I am middle of the scroll & then I rotate to landscape mode, Scroll position get sets to end of the screen.How to fix that?I searched the Google but did not got correct answer.
10
0
7.1k
Sep ’18
Reply to CollectionView in TableView
But actually when i try to connect my ViewCollection with my ViewController, i recieve Error Outlets cannot be connected to repeating content. When i try to create it manualy, inside my function tableView(), the column which contains the ViewCollection isn't recognise.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’18
Creating sandbox users on Appstore Connect broken?
Hi,I'm expiriencing problems with logging into the sandbox user accounts that are created with new, fancy Users and Access on AppStore Connect that was released this week.After creating such user, and trying to log in on my iOS 12 device (iPhone X), in the general -> iTunes -> Sandbox user section, it doesn't look like I've logged in. After putting my email & password, I'm still recieving Sign in button on this screen.Also, when I'm trying to use this account inside my app, using StoreKit API's I'm recieving ”Cannot connect to iTunes Store errors after logging in.Sandbox account created couple days ago (with old UI) are accessible without a problem (plus they have tick under Apple Pay column on AppStore Connect, whilst new accounts doesn't have it)Have anyone experienced such problems? Is it possible that creating new sandbox users is broken?
37
0
15k
Oct ’18
Reply to Creating sandbox users on Appstore Connect broken?
We are having exactly the same issue.Sandbox test users created before fancy web design are working fine.Users created recently are not working; cannot login to iPad in the Settings as Sandbox test user (seems like logging in, but after that Sign In text appears again), and getting Cannot connect to iTunes Store error in Xcode from StoreKit API.These newly created users don't have Apple Pay tick in the column either.We are about to publish our App, and we had to stop testing because of this issue. We deleted and regenerated certificates, provision profiles etc. We reset iPad. Tried almost every solution suggested in forums. Nothing helped.Does anyone know how to fix this issue?
Oct ’18
Reply to Creating sandbox users on Appstore Connect broken?
Hi Everyone,I tried just now, and when I created a new sandbox test user, Apple Pay tick in the column appeared, and I was able to Sign In to Sandbox Account on my iPad, under Settings. Seems like this issue is resolved for Singapore.I will try in the code to see whether API still returns Cannot connect to iTunes Store error.Will update this thread again.
Oct ’18
how to change NSOutlineView or NSTableView column header font?
is it really impossible to do this?I tried changing it form the xib designer view and it just reverted back to System font size 11so I tried overriding the header cell, and put my custom font directly to theclass MyTableHeaderCell: NSTableHeaderCell { let customFont: NSFont = NSFont.systemFont(ofSize: 13) // setting the custom font to use on the header cell override func drawInterior(withFrame cellFrame: NSRect, in controlView: NSView) { var mutable = NSMutableAttributedString(attributedString: attributedStringValue) mutable.removeAttribute(.font, range: NSRange(location: 0, length: mutable.length)) mutable.addAttribute(.font, value: customFont, range: NSRange(location: 0, length: mutable.length)) attributedStringValue = mutable super.drawInterior(withFrame: cellFrame, in: controlView) }}this would work most of the time, but sometimes when I move/resize the columns around I would get a crash due to the font's _sharedFontInstanceInfo being nil. _sharedFontInstanceInfo is a private property of NSFontI
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
1.4k
Oct ’18
Apple News Format 2 column container with different widths
https://developer.apple.com/documentation/apple_news/collection_display#see-alsoHi, I have a container using the following with a nested image and text component that both take 50% of the width of the container which is great for mobile, but for tablet, I'd like to be able to specify the maxwidth of only the image so that it takes 30% or a column span of 3 for larger displays. Does anyone know how to achieve that type of layout?contentDisplay: { type: collection, gutter: 15, rowSpacing: 30, distribution: wide, variableSizing: true }thanks!
0
0
614
Oct ’18
NSScrollView sticky headers
I'm trying to implement a data grid for macos. The first thing I need to achieve is to be able to have a NSScrollView with sticky/frozen headers, like excel, where there are column headers which only scroll horizontally and stay in the viewport when the user scrolls vertically, and similarly for row headers. In iOS I implemented it by moving the headers on scrolled event to counteract scrolling. But in macos the DidLiveScroll happens asynchronously and there is a constant trembling in the headers while scrolling.What is the best way to have some frozen views in macos NSScrolView?I suppose I could use 3 NSScrollViews (1 for the column headers, 1 for the row headers, and another for the content) and synchronize them, but I'm wondering whether there is a better/simpler way.Alvaro.
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
708
Oct ’18
Using CICiruclarWrap filter
I am a bit confused as exactly how to use the CICircularWrap filter. The data I am processing is a matrix, each column is from a different sensor. Each sensor is about 0.5 degrees wide. I am trying to map the sample space to cartesian space by using the CICircularWrap filter. I am not understanding how the filter works though. I get that adjusting the inputRadius controls how much of the circumference the image wraps around, but it isn't clear how many degrees the image spans. It seems the inputAngle parameter allows rotating the image and the inputCenter allows me to adjust where it is drawn within the view. I just don't understand how they all work together in a coherent way. I tried to search on this, but I pretty much just come up with the core image filter reference which is pretty limited. After playing with it, I am a bit confused as to how to compute the correct radius to achieve the correct field of view and how this radius affects the input angle. Does anyone have any experience doing somet
1
0
631
Oct ’18
Reply to Segue on tableView.clickedRow macOS
What is this didClick method ? That is not a delegate method.Do you want to select a column or a cell ?Why don't you use didSelect instead ? func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { if let mainVC = view.window?.windowController as? MainWindowViewController { mainVC.performSegue(withIdentifier: segueToHomeIdentifier, sender: mainVC) } print(row (indexPath.row), col (indexPath.column) clicked) }
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’18
Specifying Input/Output shape dimensions for CoreML 2 model with Flexible Shapes
I managed to create a CoreML 2.0 model with flexible input/output shape sizes. I set the input and output sizes from 640...2048 x 640...2048.Using coremltools, I did the following:import coremltools from coremltools.models.neural_network import flexible_shape_utils spec = coremltools.utils.load_spec('mymodel_fxedShape.mlmodel') img_size_ranges = flexible_shape_utils.NeuralNetworkImageSizeRange() img_size_ranges.add_height_range(640, 2048) img_size_ranges.add_width_range(640, 2048) flexible_shape_utils.update_image_size_range(spec, feature_name='inputImage', size_range=img_size_ranges) flexible_shape_utils.update_image_size_range(spec, feature_name='outputImage', size_range=img_size_ranges) coremltools.utils.save_spec(spec, 'myModel.mlmodel')In Xcode, it shows the range of shapes under the Flexibility column. Screen shot: https://3DTOPO.com/modelScreenshot.jpgI can't figure out how to set the size in my project, however. If I set the input pixel buffer size 2048x2048, the output pixel buffer is still
2
0
5.1k
Nov ’18
Reply to distribution OTA
Enterprise distribution to -employees- OTA via your company server is accomplished via the basics laid out in this thread:- https://forums.developer.apple.com/thread/50342...or via an MDM solution. For details, go to Business Supportand in the left column, click Mobile Device Management.
Nov ’18