Search results for

“column”

2,085 results found

Post

Replies

Boosts

Views

Activity

Reply to UITabBarController is unsupported as viewController
I have a Tab bar Controller with 4 view controllers and have also had this issue UITabBarController is unsupported as viewController for -[UISplitViewController setViewController:forColumn:] in Primary column since Updating to Xcode 12.... I've tried to change the behaviour back to Classic... but not sure how I do this? or is there a better way to solve this? :) Thanks
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’20
Reply to Need help for generics and extension
What I mean is that, if you have other code in the same file as your struct definition, you could do something like this:var a2 = Array2D(nbRows: 1, nbCol: 1, repeatedValue: true) a2.nCol = 5 a2.nRows = 5Because the private keyword only restricts access from code in other source files. Now, the nCol and nRows properties and the colCount and rowCount functions do not indicate the actual size of the array, and the row and column functions will crash.If you have the struct definition in it's own source file with nothing else, it won't be a problem.As I mentioned, to make sure even code in the same source file can't mess things up, you could use read-only computed properties and get rid of the colCount and rowCount functions.struct Array2D<T: Equatable> { var matrix : [[T]] var nRows: Int { return self.matrix.count } var nCol : Int { if self.matrix.count > 0 { return self.matrix[0].count } else { return 0 } } Also, your row and column functions should check to make sure that the index v
Topic: Programming Languages SubTopic: Swift Tags:
May ’16
Reply to Tabbing between cells in view-based table views
Yes, I noticed the tab behaviour is even worse on Sierra. I spent an hour this week overrding the standard behaviour in an NSTextField subclass for use in tables to get better behaviour. I've overridden -textDidEndEditing: looking for the tab or back tab text movements. Then I look up the ancestor chain for the table view, get the row and column for the text field and iterate over subsequent columns and rows looking for the next editable text field in there, giving it first responder status if I find one, otherwise falling back on default behaviour. It's not a particularly elegant solution, but at least it works and doesn't seem completely random like the built-in behaviour.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’16
Reply to I,have,a,problem,registering,my,phone,device.,I,have,two,already,registered,using,the,Identifier,number,but,i,am,trying,to,register,another,phone,and,its,asking,for,the,DID...where,as,the,previous,two,phones,it,asked,for,the,Identifier....the,Identifier,i
I think it has always been UDID, although they may show the word Identifier instead of UDID in some places. For example, when I go to the Certificates, IDs, and Profiles page for my account, then click one of the choices in the Devices category, the list shown has Identifier as the title of the second column, but the numbers are all UDIDs.
May ’16
Reply to How SwiftUI Table sorting works ?
Question 1 : I want to be able to sort by all the columns. How many KeyPathComparators should be in the sortOrder array? Surprisingly, a single comparator works for all columns . Question 2: What is the value of newOrder? Is it same as the sortOrder? What does it contain? You get the same behaviour with this: .onChange(of: sortOrder) { _ in people.sort(using: sortOrder) } . Question 3: sortOrder contains the comparator for only givenName. How does the above code able to provide sort functionality for all the columns? Same as question 1 ? I found this tutorial interesting. https://www.kodeco.com/books/macos-by-tutorials/v1.0/chapters/4-using-tables-custom-views And changed your code to make it work better (immediately change rows when tapping another column header) struct Person: Identifiable { let givenName: String let familyName: String let emailAddress: String let id = UUID() } private var people = [ Person(givenName: f1, familyName: Bob, emailAddress: xbob@ example.com),
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to New Product Type Identifier - 3F? in App Sales Report
Me too, and today they answered:We've made some updates to Sales reports to now show redownloads, and information on the device used. Additionally, there are some changes to Product Identifiers to support tvOS.The new device column shows where your app was purchased, updated, or redownloaded. Values include Apple TV, iPad, iPhone, iPod touch, and Desktop.The supported platforms column denotes which platforms your app supports. Values include iOS, tvOS, or iOS and tvOS.We also added redownloads to your reports. These are indicated by new Product Type Identifiers:3: Redownload of iPhone-only, or iOS and tvOS app (excluding iPad-only)3F: Redownload of Universal app (excluding tvOS)3T: Redownload of iPad-only appF3: Redownload of Mac app
Oct ’15
Reply to Remove gap between lazyvgrids in vstack
Yes, between those two lazyVgrids. I ended up adding negative padding right after the closing } of the first lazyVgrid and it removed the gap. .padding(.bottom, - 7.5) As far as a screen shot I know how to cut out a section with shift + command + 4. When I select the paper clip below and add image I select the associated png file from my desktop but I do no see it appear in this box. I clearly do not understand how to do it. Below is the section of code that includes the two lazyVgrids and the added padding. Thank you for giving me the heads up on paste and match style. It sure looks a lot cleaner. Regards, Chris LazyVGrid( columns: columns, alignment: .center, spacing: 0) { ForEach(0..<1) {row in ForEach(0..
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Reply to Constraints between a UITableView and a UITableViewCell
What do you mean by columns? Do you mean the text in the section headers? If that's what you mean you could make your own custom section headers that positioned their content a certain way and then make your cells do the same. Anyway, I don't think you can create constraints from anything inside a cell to anything outside the cell, at least I don't think it would work.
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’15
Reply to UITabBarController is unsupported as viewController
I have a Tab bar Controller with 4 view controllers and have also had this issue UITabBarController is unsupported as viewController for -[UISplitViewController setViewController:forColumn:] in Primary column since Updating to Xcode 12.... I've tried to change the behaviour back to Classic... but not sure how I do this? or is there a better way to solve this? :) Thanks
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’20
Reply to Need help for generics and extension
What I mean is that, if you have other code in the same file as your struct definition, you could do something like this:var a2 = Array2D(nbRows: 1, nbCol: 1, repeatedValue: true) a2.nCol = 5 a2.nRows = 5Because the private keyword only restricts access from code in other source files. Now, the nCol and nRows properties and the colCount and rowCount functions do not indicate the actual size of the array, and the row and column functions will crash.If you have the struct definition in it's own source file with nothing else, it won't be a problem.As I mentioned, to make sure even code in the same source file can't mess things up, you could use read-only computed properties and get rid of the colCount and rowCount functions.struct Array2D<T: Equatable> { var matrix : [[T]] var nRows: Int { return self.matrix.count } var nCol : Int { if self.matrix.count > 0 { return self.matrix[0].count } else { return 0 } } Also, your row and column functions should check to make sure that the index v
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’16
Reply to 10.12 filling up with swap files...killing disk
Whilst the Mac is in that state, use the key chord for sysdiagnose. The resulting file will complement a bug report.Additionally, Activity Monitor may offer a visual indication of which processes use more memory than expected. Consider the columns shown in this shot – – of El Capitan.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’16
Reply to Understanding the `ycbcrToRGBTransform` in the sample code metal shader
This matrix is fully described by the conversion equations in T.871. As an exercise, you can perform the matrix multiplication by hand with a generic column vector of [Y, Cb, Cr, 1], and you will arrive at the same yCbCr to RGB equations in T.871 to four decimal position accuracy.
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Dec ’19
Reply to NavigationStack and NavigationSplitView Runtime warnings
Yes, best to use the new APIs as suggested in https://developer.apple.com/wwdc22/10054 There is a bug (mentioned in my earlier post) with NavigationSplitView with the navigation on a single column, but this is marked as a known issue in iOS 16 beta (3, 4) release notes.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Tabbing between cells in view-based table views
Yes, I noticed the tab behaviour is even worse on Sierra. I spent an hour this week overrding the standard behaviour in an NSTextField subclass for use in tables to get better behaviour. I've overridden -textDidEndEditing: looking for the tab or back tab text movements. Then I look up the ancestor chain for the table view, get the row and column for the text field and iterate over subsequent columns and rows looking for the next editable text field in there, giving it first responder status if I find one, otherwise falling back on default behaviour. It's not a particularly elegant solution, but at least it works and doesn't seem completely random like the built-in behaviour.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Sep ’16
Reply to I,have,a,problem,registering,my,phone,device.,I,have,two,already,registered,using,the,Identifier,number,but,i,am,trying,to,register,another,phone,and,its,asking,for,the,DID...where,as,the,previous,two,phones,it,asked,for,the,Identifier....the,Identifier,i
I think it has always been UDID, although they may show the word Identifier instead of UDID in some places. For example, when I go to the Certificates, IDs, and Profiles page for my account, then click one of the choices in the Devices category, the list shown has Identifier as the title of the second column, but the numbers are all UDIDs.
Replies
Boosts
Views
Activity
May ’16
Reply to How to get .ipa onto device now that iTunes doesn't contain apps?
I have updated an ipa onto my iPhone this morning in iTunes 12.7 on Mac.To get the ipa loaded I dragged and dropped the ipa file onto the 'On My Device' panel in the left hand column of iTunes. The status bar indicated that it was syncing the information, and the app loaded correctly.Hope this helps.
Replies
Boosts
Views
Activity
Sep ’17
Reply to InferenceError referencing context length in FoundationModels framework
You can use the Foundation Models instrument, in the Instruments app, to analyze the use of the framework and details about your session: it features a column reporting the number of input and output tokens, which you might want to check to see if they're consistent with your expectations. This WWDC25 video can be useful too.
Replies
Boosts
Views
Activity
Jul ’25
Reply to How SwiftUI Table sorting works ?
Question 1 : I want to be able to sort by all the columns. How many KeyPathComparators should be in the sortOrder array? Surprisingly, a single comparator works for all columns . Question 2: What is the value of newOrder? Is it same as the sortOrder? What does it contain? You get the same behaviour with this: .onChange(of: sortOrder) { _ in people.sort(using: sortOrder) } . Question 3: sortOrder contains the comparator for only givenName. How does the above code able to provide sort functionality for all the columns? Same as question 1 ? I found this tutorial interesting. https://www.kodeco.com/books/macos-by-tutorials/v1.0/chapters/4-using-tables-custom-views And changed your code to make it work better (immediately change rows when tapping another column header) struct Person: Identifiable { let givenName: String let familyName: String let emailAddress: String let id = UUID() } private var people = [ Person(givenName: f1, familyName: Bob, emailAddress: xbob@ example.com),
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to New Product Type Identifier - 3F? in App Sales Report
Me too, and today they answered:We've made some updates to Sales reports to now show redownloads, and information on the device used. Additionally, there are some changes to Product Identifiers to support tvOS.The new device column shows where your app was purchased, updated, or redownloaded. Values include Apple TV, iPad, iPhone, iPod touch, and Desktop.The supported platforms column denotes which platforms your app supports. Values include iOS, tvOS, or iOS and tvOS.We also added redownloads to your reports. These are indicated by new Product Type Identifiers:3: Redownload of iPhone-only, or iOS and tvOS app (excluding iPad-only)3F: Redownload of Universal app (excluding tvOS)3T: Redownload of iPad-only appF3: Redownload of Mac app
Replies
Boosts
Views
Activity
Oct ’15
Reply to Remove gap between lazyvgrids in vstack
Yes, between those two lazyVgrids. I ended up adding negative padding right after the closing } of the first lazyVgrid and it removed the gap. .padding(.bottom, - 7.5) As far as a screen shot I know how to cut out a section with shift + command + 4. When I select the paper clip below and add image I select the associated png file from my desktop but I do no see it appear in this box. I clearly do not understand how to do it. Below is the section of code that includes the two lazyVgrids and the added padding. Thank you for giving me the heads up on paste and match style. It sure looks a lot cleaner. Regards, Chris LazyVGrid( columns: columns, alignment: .center, spacing: 0) { ForEach(0..<1) {row in ForEach(0..
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to "Selects Code Structure" not visible in Xcode Settings > Navigation
I found out that doing a Right-click or Control+click on the symbol brings a context menu almost similar to the Actions Menu. The UI is different but it offers the same functionalities like the one I wanted to try out, namely Create Column Breakpoint.
Replies
Boosts
Views
Activity
Nov ’23
Reply to LEGAL: PRIVACY - DATA COLLECTION AND STORAGE. Reject
Resolved.Facebook Login adds the following functionality:1. Lets users create their accounts and see FB FRIENDS in app .2. On the**** screen appears FB FRIENDS RATING column.3. On the game screen FB FRIENDS best results.
Replies
Boosts
Views
Activity
Nov ’16
Reply to Constraints between a UITableView and a UITableViewCell
What do you mean by columns? Do you mean the text in the section headers? If that's what you mean you could make your own custom section headers that positioned their content a certain way and then make your cells do the same. Anyway, I don't think you can create constraints from anything inside a cell to anything outside the cell, at least I don't think it would work.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’15