Post

Replies

Boosts

Views

Activity

Grant Xcode Cloud access to GitHub Enterprise
Our company is using GitHub Enterprise, and we must use VPN to connect to the organization or any repo. Because of this, Xcode Cloud seems to not be able to identify our GitHub URL. The URL doesn't end with github.com, so I can see just Unknown label on Grant Access window. So that I can't do next step like create GitHub app for repo. What should I do? Is there any support for this? or will be?
1
0
1.5k
Dec ’21
View and subviews after transformation
Hello I'm reading View Programming Guide for iOS - https://developer.apple.com/library/archive/documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/WindowsandViews/WindowsandViews.html#//apple_ref/doc/uid/TP40009503-CH2-SW5, and I have a question. I'm just wondering what this part means. The coordinate system of each subview builds upon the coordinate systems of its ancestors. So when you modify a view’s transform property, that change affects the view and all of its subviews. However, these changes affect only the final rendering of the views on the screen. Because each view draws its content and lays out its subviews relative to its own bounds, it can ignore its superview’s transform during drawing and layout. I understand that modifying transform affects the subviews, but I don't know why this changes affects only final rendering and even ignores superview's transform. Could you explain why it happens with example or other article?
1
0
1.2k
Jan ’21
Scrollable Content Size Ambiguity
Hello I got a issue like Scrollable Content Size Ambiguity So I added a UIView in Scroll View and set constraints to Top, Bottom, Leading and Trailing. And also changed the UIView's intrinsic size to Placeholder. The error was gone, but I was not able to scroll! I was able to scroll before adding the UIView, though. What should I do?
0
0
401
Sep ’20
About TableView
Hello I heard that I have to use DispatchQueue.main queue for setting UI stuff. So I used it like this. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {         let cell = tableView.dequeueReusableCell(withIdentifier: "CountryCell", for: indexPath) as! CountryListTableViewCell         DispatchQueue.main.async {             cell.countryNameLabel.text = self.countries[indexPath.row].name             cell.countryImageView.image = UIImage(named: "flag_\(self.countries[indexPath.row].asset)")         }         cell.nameOfDataAsset = countries[indexPath.row].asset         return cell     } override func prepare(for segue: UIStoryboardSegue, sender: Any?) {         guard let nextVC = segue.destination as? WeatherListViewController else {             return         }         guard let cell = sender as? CountryListTableViewCell else {             return         }         DispatchQueue.main.async {             nextVC.title = cell.countryNameLabel.text         }         nextVC.nameOfDataAsset = cell.nameOfDataAsset     } Is this right code? The nextVC.title value in prepare function is set little bit late. So I want to take it out from main queue. Can I do this? or Is there any better solution?
5
0
835
Sep ’20
About auto-layout, property observer and modal
Hello! I was doing some little iOS App project and got few questions. I put a textField, textView, imageView, button and set auto-layout in a storyboard. But depends on constraints, I was not able to see the textView on view hierachy. why does it happen? when does it happen? I just wanted to use a function whenever setting image in imageView. So I thought I needed to set property observer for IBOutlet which is the imageView. I ran the code, but it didn't works properly. The function I wanted to use was called just once when the view that has imageView came up. Why does it happen? My solution wasn't good? I want to update a main view after dismissing a modal view which has a logic about store some value. And I checked the main view's viewWillAppear isn't called after dismissing modal. In this case, how can I update the main view with a value that the modal view stored? I thought "Do I need to set a function for update in main viewController and use presentingViewcontroller value in modal viewController to update the view?" Is this right idea?
0
0
221
Sep ’20