AlliOSObjective CTutorial

How to convert Hex to UIColor

It is very easy to find the exact color you want with hex code. In this tutorial you can convert Hex to UIColor. I’m sharing a simple method that convert Hex to UIColor which you can make in your parent class and call anytime you need a color.
read more
iOSObjective CTutorial

Solution of searchDisplayControllerWillEndSearch goes out of the UIView when end searching


I got this issue when I was working with searchDisplayController when I call searchDisplayControllerWillEndSearch it goes out of bound o

The Problem:

I’ve a UIView in which I’ve placed a UISearchBar and a UIButton below are the screenshots that explains the problem: 

^This is how it appears when I first run the app 

^This is how it gets when I want to enter the text 

^Finally this is the size it gets after I end the search

The most important point here is that I’m not using UINavigationBar the red is a UIView. I’ve haven’t coded anything for it’s UI, I just placed it in the .xib and set it via autoResizing. They only this I wrote for UISearchBar was [_searchBarTop setBackgroundImage:[UIImage new]]; which was just to get the background image vanished.
I’ve tried self.searchBarTop.clipsToBounds = YES; and this 
(void)searchDisplayControllerDidEndSearch🙁UISearchDisplayController *)controller

The Solution:


read more
AlliOSObjective CTutorial

Check if a Credit/Debit Card is about to expire or has expired iOS

To check if a Credit/Debit Card is about to expire or has expired iOS is very simple. I came across applying this logic in an app but took me sometime to figure out as I’m a mid-level iOS developer.
Problem is to check whether a credit card is about to expire or has expired. So how to do it?

Solution is very simple we will use NSDateFormatter and play along with it.

read more
AlliOSObjective CTutorialWordpress

iOS App tutorial using WordPress JSON API

Let’s make an iOS App tutorial using WordPress JSON API. I use to make wordpress websites, not as a professional but more of a theme customizer. I don’t have any deep php knowledge. I’m not a back-end nor front-end developer I’m kinda in between. But I switched to iPhone apps development after my graduation so one day I searched for this and found this really cool plugin using which made it simple to build iOS applications using WordPress data in JSON form. So to understand this tutorial you need:
read more
1 2 3
Page 3 of 3