Search results for

“column”

2,085 results found

Post

Replies

Boosts

Views

Activity

Reply to NSTableView: dynamic columns
Happy New YearSo I built this special NSTableView, with columns using a XIB File. I can fill the values of the column, I also can enter values in the cells in order to Write in my Database.But when I have the table in a non editing state and I click on a row, I have the following error:Assertion failure in -[NSTableRowView viewAtColumn:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.20.106/TableView.subproj/NSTableRowView.m:22432018-01-01 06:47:59.404600+0100 testinput[35250:3816628] [General] An uncaught exception was raised2018-01-01 06:47:59.404620+0100 testinput[35250:3816628] [General] Invalid parameter not satisfying: column >= 0 && column < _columnCountI tried everything (in the limit of my knowledge)I even override the func func view(atColumn column: Int, row: Int, makeIfNecessary: Bool), but it's never called.Any Idea?
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’18
Promotional Offer ID column is empty in Subscriber report for redeemed offer code
When redeeming a custom offer code, I'm not able to see the actual offer code ID in the Subscriber report - only the subscription offer name is present. I'm going off of the documentation for the Promotional Offer ID column: A code that you create for customers to enter and redeem the subscription offer. https://developer.apple.com/help/app-store-connect/reference/subscriber-report Is the documentation wrong? How are we supposed to measure the performance of our offer codes beyond the initial redemption? For example, with the offer name I can see how my Holiday Promos offer is doing but can't see the actual performance of BLACKFRIDAY30 vs MOTHERSDAY30.
1
0
627
Aug ’24
Reply to Set the ringtone for a contact programmatically
You can use ContactsContract.Contacts which has a column CUSTOM_RINGTONE (which is a read/write column!) for this purpose. Uri contactUri; ContentValues values = new ContentValues(); values.put(ContactsContract.Contacts.CUSTOM_RINGTONE, newRingtoneUri.toString()); context.getContentResolver().update(contactUri, values, where, args);
Topic: App & System Services SubTopic: General Tags:
May ’22
Reply to ARKit camera transform orientation vector doesn't match physical device heading (despite `.gravityAndHeading`)
Hello @himanshujnaidu, I can't tell for sure but it sounds like the matrix you show above is different than how you are interpreting it. Camera Transform = simd_float4x4( [ [0.98446155, -0.030119859, 0.172998, 0.0], // column 0 [0.023979114, 0.9990097, 0.037477385, 0.0], // column 1 [-0.17395553, -0.032746706, 0.98420894, 0.0], // column 2 [0.024039675, -0.037087332, -0.22780673, 0.99999994] // column 3 ]) First up, keep in mind that float4x4's init method is column major. So each 'row' in that code is a column in the matrix. So in this case the position of the camera relative to the origin is 0.024039675, -0.037087332, -0.22780673 Second, the upper-left part of the float4x4 matrix is a float3x3 and represents the orientation. The eulerAngles property on the frame.camera re-interprets this 3x3 matrix as the familiar Euler angles. You can find the orientation of the camera relative to the frame via let rotation = frame.camera.eulerAngles rotation.y will be
Topic: Spatial Computing SubTopic: ARKit Tags:
Jun ’25
iOS 14 UISplitViewController (sidebar) with triple column sidebar toggle icon behavior
I'm implementing the iOS 14 (iPadOS 14) sidebar (UISplitViewController with TripleColumn) and having strange sidebar toggle icon behavior. In iOS 13 I'm using the tab bar with tabs with split views and tab with only table view so I need the Triple Column instead of the Double Column to work. In iOS 13, there is one tab with only a table view, so I set the supplementary view to nil, and hide the view by calling hide method implemented in UISplitViewController in iOS 14. (See below for code). The sidebar toggle icon on the upper left is automatically displayed. After clicking the toggle icon, the sidebar hides correctly but an back button was created on my secondary view(a UITableViewController embedded in a UINavigationController). Selecting the back button has no response at all. However, user can still swipe from the left edge of the screen to make sidebar reappear but the back button is confusing. My expected behavior is, after the toggle icon selected in sidebar, display the sidebar toggl
1
0
2.2k
Sep ’20
HStack required to get columns in a Grid
I've looked at lots of Grid examples. I've seen it documented that views within a GridRow are treated as if they were in an HStack. That's not happening for me. I have to explicitly put them into an HStack or they are treated as new rows. Here's my code: @State private var gridRows : Int = 4 @State private var gridCols : Int = 2 @State private var myItems : [Int] = Array(0...8) var body: some View { Group { if myItems.count > 0 { ScrollView([.vertical]) { Grid(alignment: .leading) { ForEach(0..<<--- { ForEach(0..
Topic: UI Frameworks SubTopic: SwiftUI
2
0
347
Nov ’24
Reply to Navigation View inside Tabview not displaying correctly in landscape mode
This is the default behaviour for NavigationView – single column in a compact horizontal size class and a two/three column layout in a regular size class. Either apply this modifier to the NavigationView: navigationViewStyle(.stack) or use a NavigationStack instead.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to App Clip Domain Issue: URL Not Recognized in App Store Connect
Please first check the validation status of your App Clip, then report the value in the Cache Status column. The Cache Status column shows the validation status for your App Clip as the system performs the validation on people’s devices.
Replies
Boosts
Views
Activity
Nov ’24
Reply to UICollectionViewCell & Multitasking on iPad
In full screen landscape mode without Multitasking UICollection View Cell Columns are 5, When in landscape mode app goes in to multitasking with regular and regular traitcollection columns should be 3.How to do that?
Replies
Boosts
Views
Activity
Mar ’18
Reply to SwiftUI LazyVGrid with two columns
You could create 2 separate sections: one for 2 column layout and another for a single column layout. You'd have to handle a much of math to determine where items go though.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’20
Reply to NSTableView: dynamic columns
Happy New YearSo I built this special NSTableView, with columns using a XIB File. I can fill the values of the column, I also can enter values in the cells in order to Write in my Database.But when I have the table in a non editing state and I click on a row, I have the following error:Assertion failure in -[NSTableRowView viewAtColumn:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.20.106/TableView.subproj/NSTableRowView.m:22432018-01-01 06:47:59.404600+0100 testinput[35250:3816628] [General] An uncaught exception was raised2018-01-01 06:47:59.404620+0100 testinput[35250:3816628] [General] Invalid parameter not satisfying: column >= 0 && column < _columnCountI tried everything (in the limit of my knowledge)I even override the func func view(atColumn column: Int, row: Int, makeIfNecessary: Bool), but it's never called.Any Idea?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’18
Column totals in Manage campaigns view
Can these please be added, or is there some way to get this same information in another view?It would be especially useful to see total amount spent across all campaigns in a given time period. Also, presumably Lifetime will be added as a time period option once this has been out for a while.Thanks!
Replies
0
Boosts
0
Views
316
Activity
Oct ’16
Promotional Offer ID column is empty in Subscriber report for redeemed offer code
When redeeming a custom offer code, I'm not able to see the actual offer code ID in the Subscriber report - only the subscription offer name is present. I'm going off of the documentation for the Promotional Offer ID column: A code that you create for customers to enter and redeem the subscription offer. https://developer.apple.com/help/app-store-connect/reference/subscriber-report Is the documentation wrong? How are we supposed to measure the performance of our offer codes beyond the initial redemption? For example, with the offer name I can see how my Holiday Promos offer is doing but can't see the actual performance of BLACKFRIDAY30 vs MOTHERSDAY30.
Replies
1
Boosts
0
Views
627
Activity
Aug ’24
Reply to macOS Monterey Xcode Update Questions (New Warnings)
To get rid of the Warning: Column selection is not supported in view-based table and outline views, uncheck the Selection > Column checkbox in the table view properties in the Interface Builder.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to NavigationSplitView sidebar Links not working after navigating back
iOS & iPadOS 16 Beta Release Notes SwiftUI Known Issues • Selection-driven, three-column NavigationSplitView sometimes fails to push when collapsed to a single column. (93673059)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Set the ringtone for a contact programmatically
You can use ContactsContract.Contacts which has a column CUSTOM_RINGTONE (which is a read/write column!) for this purpose. Uri contactUri; ContentValues values = new ContentValues(); values.put(ContactsContract.Contacts.CUSTOM_RINGTONE, newRingtoneUri.toString()); context.getContentResolver().update(contactUri, values, where, args);
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Swift: How to change DetailView depending on SideBar Selection State with SwiftUI 4?
Conditional views in columns of NavigationSplitView fail to update on some state changes. (91311311) Workaround: Wrap the contents of the column in a ZStack. See iOS & iPadOS 16 Beta 3 Release Notes
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to ARKit camera transform orientation vector doesn't match physical device heading (despite `.gravityAndHeading`)
Hello @himanshujnaidu, I can't tell for sure but it sounds like the matrix you show above is different than how you are interpreting it. Camera Transform = simd_float4x4( [ [0.98446155, -0.030119859, 0.172998, 0.0], // column 0 [0.023979114, 0.9990097, 0.037477385, 0.0], // column 1 [-0.17395553, -0.032746706, 0.98420894, 0.0], // column 2 [0.024039675, -0.037087332, -0.22780673, 0.99999994] // column 3 ]) First up, keep in mind that float4x4's init method is column major. So each 'row' in that code is a column in the matrix. So in this case the position of the camera relative to the origin is 0.024039675, -0.037087332, -0.22780673 Second, the upper-left part of the float4x4 matrix is a float3x3 and represents the orientation. The eulerAngles property on the frame.camera re-interprets this 3x3 matrix as the familiar Euler angles. You can find the orientation of the camera relative to the frame via let rotation = frame.camera.eulerAngles rotation.y will be
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Jun ’25
iOS 14 UISplitViewController (sidebar) with triple column sidebar toggle icon behavior
I'm implementing the iOS 14 (iPadOS 14) sidebar (UISplitViewController with TripleColumn) and having strange sidebar toggle icon behavior. In iOS 13 I'm using the tab bar with tabs with split views and tab with only table view so I need the Triple Column instead of the Double Column to work. In iOS 13, there is one tab with only a table view, so I set the supplementary view to nil, and hide the view by calling hide method implemented in UISplitViewController in iOS 14. (See below for code). The sidebar toggle icon on the upper left is automatically displayed. After clicking the toggle icon, the sidebar hides correctly but an back button was created on my secondary view(a UITableViewController embedded in a UINavigationController). Selecting the back button has no response at all. However, user can still swipe from the left edge of the screen to make sidebar reappear but the back button is confusing. My expected behavior is, after the toggle icon selected in sidebar, display the sidebar toggl
Replies
1
Boosts
0
Views
2.2k
Activity
Sep ’20
How to create UITableView programmatically with 2 Columns
Hi How to create UITableView programmatically with 2 ColumnsThanks
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
568
Activity
Jul ’17
HStack required to get columns in a Grid
I've looked at lots of Grid examples. I've seen it documented that views within a GridRow are treated as if they were in an HStack. That's not happening for me. I have to explicitly put them into an HStack or they are treated as new rows. Here's my code: @State private var gridRows : Int = 4 @State private var gridCols : Int = 2 @State private var myItems : [Int] = Array(0...8) var body: some View { Group { if myItems.count > 0 { ScrollView([.vertical]) { Grid(alignment: .leading) { ForEach(0..<<--- { ForEach(0..
Topic: UI Frameworks SubTopic: SwiftUI
Replies
2
Boosts
0
Views
347
Activity
Nov ’24