Post

Replies

Boosts

Views

Activity

How to index image from xcode storyboard to collectionview
Added imageview to cell. We have already indexed the label and implemented openurl. But, I don't know how to index the image the way I wrote it. Currently, no error code is entered, but the picture is not visible in the simulator. import UIKit private let reuseIdentifier = "Cell" class CollectionViewController: UICollectionViewController {   var modelData = ["A","B","B","D","E"]       let urls = ["h","h","h","h","h",]       let imagedata = [UIImage(named: "image1"), UIImage(named: "image2"), UIImage(named: "image3"), UIImage(named: "image4"), UIImage(named: "image5")]                   @IBAction func URLbutton(_ sender: UIButton) {         }           override func viewDidLoad() {     super.viewDidLoad()                     }   // MARK: UICollectionViewDataSource   override func numberOfSections(in collectionView: UICollectionView) -> Int {     return 1   }   override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {     return modelData.count   }       override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {     let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath)           // Configure the cell     if let label = cell.viewWithTag(100) as? UILabel {       label.text = modelData[indexPath.row]     }     if let imageview = cell.viewWithTag(200) as? UIImageView {       imageview.image = imagedata[indexPath.row]     }                                                   return cell   }   override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {     ??     }
3
0
879
Aug ’22
Designing a custom keyboard
I am trying to make a keyboard themed app. I created a custom keyboard file through the target, but the file I created does not have keyboard keys. How can I create a keyboardView and put the image I made into the keyboardView? There are too few related materials, so I need the help of experts.
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
715
May ’22
What is the difference between swiftdata and coredata?
What is the difference between swiftdata and coredata? I am coding by integrating coreda and icloud. As introduced at wwdc, I heard that it can be used more easily in xcode. However, for me who has to sell it tomorrow, the stability of swiftdata after the official release of ios17 in the future is low, and scalability and modification are difficult. If it's difficult, it's a lot of trouble. And the most important thing, is there any difference from coredata by using swiftdata in the experience of my valuable customers who use my program? I'm well aware that everyone is learning and discussing. Thank you for sharing your experience.
2
2
1.2k
Jul ’23
compatible with vision pro and mac mini
I currently have an m1pro Macbook and m2pro high-end Macmini. I saw on wwdc that Macbook and vision pro screen sharing is possible. But I wonder if I can see the mac mini screen as it is on vision pro. Is this very smooth and can I work or use my macmini at home using Vision Pro while I am out at a cafe or going out? Of course there is a delay, but like the xbox x or ps5, the delay will be available looking forward.
2
0
1.3k
Jul ’23
vision pro keyboard
I think there is a problem with the keyboard of vision pro. I don't think it's difficult to enter another language. If you're not going to make it, shouldn't Apple provide an extended custom keyboard? Sometimes it's frustrating to see things that are intentionally restricted. If you have any information about vision pro's keyboard or want to discuss it, let's talk about your thoughts together! I don't have any information yet
2
0
904
Feb ’24
Connecting xcode with real my visionpro
Currently, the id of my actual visionpro device is different from the xcode that works on my macmini. I added a visionpro id to xcode, but I can't build it with my visionpro. Can I log out of the existing login to xcode and log in with the same ID as visionpro? However, the appleID created for visionpro does not have an Apple Developer membership, so there is no certificate that makes it run on the actual device. How can I add my visionpro ID from the ID with my apple developer membership to run the xcode project app on visionpro? This is the first time this is the first time.
2
0
6.5k
Jan ’25
Ability to add numbers
I want to make something that adds numbers over and over again. If you add 50 at the beginning, it is saved in the core data, and if you add 80 again later, I want 130 to be saved in the core data right away. How do I store the stored value directly in Core Data and add another number to that data?
1
0
499
Apr ’22
Building a custom keyboard
I'm trying to make a keyboard that conforms to Apple's guidelines. I need to change the key layout like an app in the App Store, but I can't find any documentation or information about it. Everyone leaves the keyboard instruction link and runs away. Can you help me? https://apps.apple.com/kr/app/slyder/id1121553033
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
563
May ’22
How to use UIImage instead of UIColor
Currently, I am making custom keyboard as an extension. As I was making it, I was able to specify the background color of the keyboard button. But what I want is to insert a UIImage instead of a UIColor, but it doesn't work. Can anyone tell me? People like Claude 31 who can give me a rough idea, please do not comment and I will report you.
1
0
661
Jul ’22
'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.
import UIKit import CoreHaptics import AVFoundation enum ShiftStatus{   case capitalized   case normal } @available(iOSApplicationExtension 13.0, *) class KeyboardViewController: UIInputViewController {       var engine: CHHapticEngine?       lazy var supportsHaptics: Bool = {     let appDelegate = UIApplication.shared.delegate as! AppDelegate     return appDelegate.supportsHaptics   }() Currently working here 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead. A warning message pops up. I have to use it in an extension. Does anyone know a solution?
1
0
6.9k
Jul ’22
How to make return key for extension keyboard
I made a custom keyboard. However, I'm not sure how to actively create buttons according to the input type like the iPhone's default keyboard. This is the information I found. typedef enum { case 'default' case asciiCapble case numberAndPunctuation case URL case numberPad case phonePad case namePhonePad case eamilAddress case decimalPad case twitter case webSearch case asciiCapbleNumberPad }UIKeyboardType; static var alphabey: UIKeyboardType Specifies a keybovard optimized for alphabetic entry
1
0
838
Dec ’22