Don_Mag

Untitled

Jul 25th, 2023
4,724
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 1.73 KB | None | 0 0
  1. class ParentVC: UIViewController {
  2.    
  3.     override func viewDidLoad() {
  4.         super.viewDidLoad()
  5.         view.backgroundColor = .systemYellow
  6.  
  7.         let childVC = ChildVC()
  8.         self.addChild(childVC)
  9.         childVC.view.frame = .init(x: 60.0, y: 80.0, width: 240.0, height: 160.0)
  10.         childVC.view.autoresizingMask = []
  11.         self.view.addSubview(childVC.view)
  12.         childVC.didMove(toParent: self)
  13.     }
  14.    
  15. }
  16.  
  17. class ChildVC: UIViewController, UIPickerViewDataSource, UIPickerViewDelegate {
  18.    
  19.     let picker = UIPickerView()
  20.    
  21.     override func viewDidLoad() {
  22.         super.viewDidLoad()
  23.        
  24.         self.view.addSubview(self.picker)
  25.        
  26.         self.picker.delegate = self
  27.         self.picker.dataSource = self
  28.  
  29.     }
  30.    
  31.     override func viewDidAppear(_ animated: Bool) {
  32.         print(#function)
  33.         super.viewDidAppear(animated)
  34.        
  35.         if self.view.superview != nil {
  36.             picker.frame = self.view.bounds
  37.             picker.autoresizingMask = []
  38.         } else {
  39.             picker.frame = .init(x: 20.0, y: 100.0, width: 260.0, height: 160.0)
  40.         }
  41.  
  42.         picker.backgroundColor = .yellow
  43.     }
  44.    
  45.     override func viewSafeAreaInsetsDidChange() {
  46.         super.viewSafeAreaInsetsDidChange()
  47.         //This gets called everytime the device rotates, causing the picker view to redraw and reload all components. Trying to avoid this method being called.
  48.        
  49.         print ("viewSafeAreaInsetsDidChange")
  50.         print (self.view.safeAreaInsets)
  51.     }
  52.    
  53.     func numberOfComponents(in pickerView: UIPickerView) -> Int {
  54.         print(#function)
  55.         return 1
  56.     }
  57.    
  58.     func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
  59.         print(#function)
  60.         return 30
  61.     }
  62.    
  63.     func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
  64.         print(#function, "Row:", row)
  65.         return "Row: \(row)"
  66.     }
  67.    
  68. }
  69.  
Advertisement
Comments
  • hagsiv
    66 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 38% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without any verification from Swapzone — instant swap).
  • Dardolix
    18 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment