Post

Replies

Boosts

Views

Activity

Reply to Use - requestImageForAsset: targetSize: contentMode: options: resultHandler on iOS15 beta
Could you show how you call (objc code ?) requestImage(for:targetSize:contentMode:options:resultHandler:) The method is asynchronous, so maybe you look at result before completion ? You can force it to be synchronous (at least for testing purpose). Did you check permission keys in info.plist ? h t t p s : / / github.com/react-native-cameraroll/react-native-cameraroll/issues/157
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’21
Reply to DateFormat
Up to you to define: let dateFormatter = DateFormatter() dateFormatter.calendar = Calendar.current dateFormatter.dateFormat = "dd.MM.yyyy" let dateText = dateFormatter.string(from: Date()) print(dateText) Gives: 04.08.2021 Note: take care: mm is for minutes, MM for month
Topic: App & System Services SubTopic: General Tags:
Aug ’21
Reply to CollectionView class doesn't have the delegate property?
I tested in a test project, and it works (I get valid references for dataSource and delegate). But in my case, no loadView, so I initialise testVC in viewDidLoad. Try to move   let flowLayout = UICollectionViewFlowLayout()   let photoCollectionViewLayoutFrame = CGRect(x: 0, y: 0, width: scrollView.bounds.width, height: CGFloat(150))   testCV = UICollectionView(frame: photoCollectionViewLayoutFrame, collectionViewLayout: flowLayout) to viewDidLoad. Why do you overload loadView() ? There are a lot of warnings in loadView() doc when doing so: If you use Interface Builder to create your views and initialize the view controller, you must not override this method. You can override this method in order to create your views manually. If you choose to do so, assign the root view of your view hierarchy to the view property. The views you create should be unique instances and should not be shared with any other view controller object. Your custom implementation of this method should not call super. If you want to perform any additional initialization of your views, do so in the viewDidLoad()method.
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
Reply to size of custom component
My understanding is qualified YES. the tappable region should be 44*44 at least but the visible part of it could be smaller (not too small however, so that user can still understand it). Note that HIG are guidelines, for the good of all, not strict requirements. PS: is your question to Apple ? If so, the forum is not the best place to do it. You should better contact support (even though I fear they can only repeat what HIG says).
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
Reply to ProGuard equivalent for iOS
Take care of the risk of rejection when submitting to AppStore: h t t p s : / / github. com/Adyen/adyen-3ds2-ios/issues/3 sending it to the App Store, we got rejected based on Guideline 2.3.1: We discovered that your app contains obfuscated code, selector mangling, or features meant to subvert the App Review process by changing this app's concept after approval to the App Store.
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’21
Reply to Text like PlaceHolder
As Beatles would have song, yes, you can display anything you want… More seriously, you have to consider: 1 that "placeholder" part must be gray: hence need attributedString 2 that you have to type text at the place of the first placeHolder char : need to force the insertion point 3 at each character typed, substitute in the String if valid ; use :     func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { 4 to insert space at appropriate places 5 that user must understand what is expected. But it is possible. You'll probably have to subclass UITextField. Another way to do this is add a label (smaller fonts) atop of the textField. make this label appear as soon as you've started to type. display " 31 0M YYYY " only in the label; in textField, you would have " 31 0" That would avoid step 2 and make step 5 easier Yet another way: create 3 textFields for Day, Month and year have placeholders in each automatically jump to next textField once one is complete.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’21
Reply to IP restricted App
@PhilFromTheMinion If I understand correctly, that was a requirement only for the review team. May be you could authorise access from some specific IP address (ask the reviewer to provide it) and provide a password to unlock access from this address…
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’21
Reply to picker SwiftUI avec des float
Quelques précisions seraient utiles: Que contient minutes ? Où sont affichées les valeurs 10 à 16 ? (s'agit il de minutes ?) Je ne vois pas la division par 10 Mais quelque chose comme ceci devrait donner le résultat attendu (peut être dans l'ordre inverse): Picker(selection: self.$minuteChoisie, label: Text("")){ ForEach(0 ..< self.minutes.count){ index in let val = Float(self.minutes[index]) / 10 let valString = String(format: "%.01f", val) Text("\(valString)") .tag(index) } } Pour l'avoir dans le bon ordre: Picker(selection: self.$minuteChoisie, label: Text("")){ ForEach(0 ..< self.minutes.count) { index in let val = Float(self.minutes[self.minutes.count-index-1]) / 10 let valString = String(format: "%.01f", val) Text("\(valString)") .tag(index) } }
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’21
Reply to No suitable image found.
If you remove the IBDesignable statements in code, does it work ? Or is the problem more general of not being able to open storyboards ? Have a look here, seems a similar problem. https://stackoverflow.com/questions/53114398/xcode-simulator-cymemdef-dylib-mach-o-but-not-built-for-ios-simulator/53235872
Aug ’21