★ UITextFieldの生成
var textField = UITextField()
var textField: UITextField = UITextField()
// 位置、サイズを指定して生成| # ==== Emojis ==== | |
| # 🐛 :bug: バグ修正 | |
| # 👍 :+1: 機能改善 | |
| # ✨ :sparkles: 部分的な機能追加 | |
| # 🎉 :tada: 盛大に祝うべき大きな機能追加 | |
| # ♻️ :recycle: リファクタリング | |
| # 🚿 :shower: 不要な機能・使われなくなった機能の削除 | |
| # 💚 :green_heart: テストやCIの修正・改善 |
| #!/usr/bin/env python3 | |
| # This script is designed to do one thing and one thing only. It will find each | |
| # of the FlateDecode streams in a PDF document using a regular expression, | |
| # unzip them, and print out the unzipped data. You can do the same in any | |
| # programming language you choose. | |
| # | |
| # This is NOT a generic PDF decoder, if you need a generic PDF decoder, please | |
| # take a look at pdf-parser by Didier Stevens, which is included in Kali linux. | |
| # https://tools.kali.org/forensics/pdf-parser. | |
| # |
| extension ViewController: UITextDragDelegate { | |
| func textDraggableView(_ textDraggableView: UIView & UITextDraggable, dragPreviewForLiftingItem item: UIDragItem, session: UIDragSession) -> UITargetedDragPreview? { | |
| let dragView = textDraggableView | |
| let selectionRange = textDraggableView.selectedTextRange | |
| let selectionRects = textDraggableView.selectionRects(for: selectionRange!) as! [UITextSelectionRect] | |
| var array: [CGRect] = [] | |