Posts

Showing posts with the label Creator Avinash

KVO & KVC In swift || What is Key-Value-Coding and Key-Value-Observing ?

Image
👨‍💻 Exploring Key-Value Coding (KVC) and Key-Value Observing (KVO) in Swift! 🧐 🔑 Key-Value Coding (KVC): KVC allows us to access properties using keys (strings), providing dynamic and flexible data manipulation. It's incredibly handy when you want to work with properties without knowing their names at compile time. ✨💡 Example: In the example above, we use KVC to dynamically access the "propertyName" property of `myObject`. 👀  Key-Value Observing (KVO): KVO, on the other hand, lets us observe changes in properties. It's like having a built-in alert system for your objects! When the observed property changes, you receive notifications, enabling you to take immediate action in response to these changes. 🚀💡 Example: In this example, we create a custom observer class `MyObserver` and use KVO to observe changes to the "observedProperty." How have you used KVC and KVO in your projects? Share your insights! 💬 #SwiftDevelopment #CodingMagic #KVC #KVO #Dynami...

Custom Push Notification with image IOS

Image
  Custom Push Notification with image IOS  I created my first custom notification, I read many articles and videos. Is is tricky at first So Please Focus on your work and follow These step I follow these 3 site  given link :- 1. https://medium.com/@lucasgoesvalle/custom-push-notification-with-image-and-interactions-on-ios-swift-4-ffdbde1f457 2. Link https://stackoverflow.com/questions/21250510/generate-pem-file-used-to-set-up-apple-push-notifications 3. Link https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html   START READY TO GO……. 1. Go to X-code and create a project 2. Go capability and select PushNotification & Back grounds Modes 3.  Follow 2. Link and create certificate and install .p12 file So we Will start to create demo AppDelegate . swift file :-  Call didRegisterForRemoteNotificationsWithDeviceToken and didFailToRegisterForRemoteNotificationsWithErro...