Posts

Showing posts with the label objective c

Solid Principles

 Solid Principle : S - Single Responsibility O- Open / Closed Principle L - Liskov Substitution I - Interface Segregation  D - Dependency Inversion  S - Single Responsibility Principle            A class should have only one  reason to change, meaning a class should have only one job.     Example :  For software development we have multiple people doing different thing like designer do designing, tester do testing and developer do development. O - Open / Closed Principle          Open for extension / Closed for modification      Example: All smart phones have app stores and these app stores let you extend the base  functionality of the phone. Via the App Store, you can extend the phones capabilities to allow you to manage your todo list, play video games. It's not as that Apple Google and Microsoft put the OS source code up on Github and invite you to dive in and start buil...

Great Apple Event 2021

Image
Like always one more interesting #AppleEvent 

Notifications in iOS

Image
Types of notifications We can broadly classify notifications into 2 categories, Local notifications  — app configures the notification details locally and passes those details to the system, which then handles the delivery of the notification when the app is not in the foreground. Remote notifications  —  use one of your company’s servers to push data to user devices via the Apple Push Notification service(APNs). Further in the article, we’ll see how we can get hold of both the notification types. Let’s first start with the introduction to the very new notification framework that we can use to our cause. What’s new in iOS-10 for Notifications? With the release of  iOS-10 , Apple introduced 2 new frameworks to handle notifications, User Notifications Framework   — manages both local and remote notifications. User Notifications UI Framework  — customize the appearance of the system’s notification interface. We’ll be using these 2 frameworks and some platf...