Post

Replies

Boosts

Views

Activity

Reply to Xcode unsupported iOS version after beta update 14.5 error 18e5140k
18e5140k is a new version of 14.5 beta2, released feb 4th. Did you check you have it installed (18e5140k). The previous one (18e5140j) had a lot of issues with APP. https ://www.reddit. com/r/eero/comments/ldlb3t/ios145beta218e5140k/ Or from https ://www.igen. fr/ios/2021/02/beta-1-dios-145-apple-livre-une-nouvelle-build-120453 This build provides a fix for Office applications that could not be launched since the first beta. The bug affects software that uses APP (App Protection Policy), Microsoft's office suite, but also other applications.
Feb ’21
Reply to Positioning UITabBarItem's image
E.g. the "gearshape" or "gear" symbol, they are very close to the title, whereas the "function" symbol is far away.  It only seems to be a few pixels, but both next to each other look pretty bad. I created a TabBarController, with 4 child views, with Bar item icons as function gear rectangle and pencil and ellipsis square and arrow up All icons are aligned on top All labels are aligned But icons have different size, so effectively, func and rectangle appeared shifted to the top. Read this, may be a solution to your problem https://stackoverflow.com/questions/10533917/ios-5-custom-tab-bar-image-vertical-alignment Note I tested as described there, both in code of the VC viewDidload tabBarItem.imageInsets = UIEdgeInsets(top: 6, left: 0, bottom: -6, right: 0) or in IB by setting the insets. But could not get any change I also tested this in viewDidLoad, to no avail 				for tab in self.tabBarController!.tabBar.items! { 						tab.imageInsets = UIEdgeInsets(top: 6, left: 0, bottom: -6, right: 0) 				} I also tested this, but could not get the result they show to move the icon: https://stackoverflow.com/questions/16285205/moving-uitabbaritem-image-down
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’21
Reply to UIWebView
Yes, UIWebView was deprecated long time ago. Have a look here if needed: https ://medium. com/@catchvarun25/migration-of-uiwebview-to-wkwebview-9945ebb70e15 but I just want to know what's the reason. know the reason of what ? Why it was deprecated ? There may be many reasons: security performance Some reasons listed here: https://stackoverflow.com/questions/29303316/is-wkwebview-designed-as-a-replacement-of-uiwebview There are several reasons, including security (out of process model), performance and memory management.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’21
Reply to Tips on making apps
What do you want to know precisely ? What are your present knowledge of apps development ? You will have to learn: Xcode, the programming environment Swift of course the apps architectures and the API (UIKit or SwiftUI) to access iOS resources A first step is to study in Apple's Library "Intro to App development with Swift". Wish you good start. And don't forget to close the thread if that answers your question.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
Reply to Transition within Navigation to the Root Tab Bar Controller
Is it the real code ? It probably does not compile: let controllers = self.navigationController.viewcontrollers let homeTBC = controllers![3] as! UITabBarController let homeVC = homeTBC.viewControllers?[0] as! HomeViewController self.present(homeVC, animated: true, completion: nil) Line 1, it should be navigationController?.viewControllers and not navigationController.viewcontrollers I don't understand your line 2 and the view hierarchy: What I understand (looking at MyDiagram: Navigation Controller LoginEnrollVC EnrollVC LoginVC ServicesTVC TabBarController with 5 tabs                                                   –––––––––––––––––––––––––––––––––––––––––––––––––––––––––|                                                  |                                    TabBarController ___________________________|_____________________________________________ |                |                            |                                   |                                     | Home BillVC          PaymentAccountVC AddCardVC PaymentSuccessVC You call self.navigationController.viewcontrollers, in PaymentSuccessVC Who is this PaymentSuccessVC.navigationController ? Is it Home, or is there a navigation controller ahead of Home ? there should be a navigation controller Is there a nav controller above of below BillVC ? Otherwise, I do not see who is the navController of SuccessPaymentVC. In such a case, code could be like: let homeTBC = self.navigationController?.tabBarController // the TabBarController let homeVC = homeTBC.viewControllers?[0] as! HomeViewController self.present(homeVC, animated: true, completion: nil) In addition I don't understand is who is controllers[3] ? Looks like it is self ???? So, I miss something in your architecture.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’21
Reply to How to change frame like using CGAffineTransform?
Transform captures an image of the view (in fact, it layers a new image "on top" and hides the original) and makes the transformation on this new image. Hence, content is frozen during animation. When you reset the frame, then the content may change. Conclusion: for a simple resizing of the view, restating frame is better. But if you wanted an animation effect as a spiralling zooming to zero size, then transform is the way to go. Don't forget to close the thread if that's OK.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’21
Reply to How do I connect a control to a method programmatically? - Develop In Swift Fundamentals - Programmatic Actions
You are probably missing some steps. You declare the IBOutlet. That means you have a button in the view in Interface Builder. Right ? If so, you need to connect the 2 by dragging from the circle next on the left of IBOutlet declaration to the button in Interface Builder. Did you do this ? Then the white circle should become black. then connecting the button using this code below. Here you do not connect the button, you declare its action. I pasted the code above right after the viewDidLoad Where did you put this exactly ? It should probably be INSIDE viewDidLoad. So please show the complete code of the class, that will be easier to analyse.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’21
Reply to helppp
A first step is to study in Apple's Library "Intro to App development with Swift". Wish you good start. And don't forget to close the thread if that answers your question.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21