Search results for

column

2,078 results found

Post

Replies

Boosts

Views

Activity

Reply to Question About Swift
So you're making the columns wider as necessary? That's a bit of work, as you've seen, to compute the widths. What happens if a name has a million characters? So, there is more to think about here.A simpler approach is to keep the column widths, but then you can't show all the data. So, what can you show instead? You can solve the crashing problem by only showing as much data as fits, but that's going to be misleading to anyone using the table.Either way, solving the problem takes a bit of analysis and planning.
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’18
Reply to Mojave beta 6 breaks Applescripts
This worked for me, but it requires converting to an app first!1. Open the app's plist file is xcode2. add row (from right click context menu)3. in ‘key’ column select ‘Privacy - AppleEvents Sending Usage Description’ from the drop down menu (you need to scroll down)4. add ‘This script needs to control other applications to run.' in the value column.5. Build the application again... it should now prompt for accessibility and automation permissions.Hope it helps...
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’18
Reply to iOS 13 crash creating reminders
This is usually the result of a storyboard outlet connected to a class property that is no longer there. That is, you might have removed/renamed a property in code that was still connected to an outlet. This is not handled automatically by Xcode, if you remove a connected property in code, you also have to remove that connection in storyboard. To check for this, switch to storyboard and bring up the utilities column (upper right). Select the element and the connections inspector (top right of the utilities column). Check if there are any unwanted connections and remove them if necessary.
Topic: App & System Services SubTopic: General Tags:
May ’20
Reply to Reset Matrix Help
for anyone who might have the same question/problem. here's the sample that works as I wanted. import SwiftUI struct ContentView: View { let numberOfRows = 5 let numberOfColumns = 5 @State var matrix: [[Int]] = Array(repeating: Array(repeating: 0, count: 5), count: 5) @State var selectedRow1 = 0 @State var selectedColumn1 = 0 @State var selectedRow2 = 0 @State var selectedColumn2 = 0 @State var selectedRow3 = 0 var body: some View { VStack { Image(systemName: globe) .imageScale(.large) .foregroundColor(.accentColor) Text(Hello, world!) Form { Section(header: Text(Question 1)) { Picker(Select a row:, selection: $selectedRow1) { ForEach(1...numberOfRows, id: .self) { row in Text((row)) } } .pickerStyle(SegmentedPickerStyle()) Picker(Select a column:, selection: $selectedColumn1) { ForEach(1...numberOfColumns, id: .self) { column in Text((column)) } } .pickerStyle(SegmentedPickerStyle()) } Section(header: Text(Question 2)) { Picker(Select a row:, selection: $selectedRow2) { ForEach(1..
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’23
Reply to UIPickerView row descriptions
I don't understand what are each component. Component is a column, it seems you are trying to use a component as a title for column ? If I understand correctly, you should have only 3 components. And titleForRow 0 should hold the title. To forbid selection of title, do it in func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) { with the following code: var selectedRow = row if selectedRow == 0 { // title not to be selected selectedRow = 1 pickerView.selectRow(selectedRow, inComponent: component, animated: false) }
Topic: Programming Languages SubTopic: Swift Tags:
May ’22
Reply to Nesting engineering type tracks under custom instrument
Hey there!Great question.In general, you can specify multiple levels in the engineering-type-track elements by specifying multiple hierarchy levels.Your tracks can be nested under instrument if you specify <self/> as the first hierarchy level, like so:<hierarchy> <level> <self/> </level> <level> <column>value-column</column> </level> </hierarchy>Then, in the matching augmentation, you'll need to provide Instrument type ID as the first restriction level:<slice-type-hierarchy> <level> <slice-type>instrument-type</slice-type> <equals> <instrument-type>com.example.your-instrument-id</instrument-type> </equals> </level> <level> <slice-type>value-column-type</slice-type> </level> </slice-type-hierarchy>Please keep in mind that you can create hierarchies even if you don't nest something under instrument track — just specify more levels in
Feb ’20
Reply to Matrix - Buffer, row - column representation problem
Matrix components are constructed and consumed in column-major order.https://developer.apple.com/library/ios/documentation/Metal/Reference/MetalShadingLanguageGuide/data-types/data-types.htmlThe reason that the results are not consistent with your expectations is that you are not constructing your matrix in column major order. Here's the matrix you're making:0 | 4 | 8 | 121 | 5 | 9 | 132 | 6 | 10 | 143 | 7 | 11 | 15
Topic: Graphics & Games SubTopic: General Tags:
Nov ’15