Monday, May 11, 2015

iOS SideMenu / SideDrawer / SlidingView - Best Frameworks - GitHub Links


Top 5 iOS ( Objective-C ) Side Menu Frameworks are -

MMDrawerController

A lightweight, easy to use, Side Drawer Navigation Controller
https://github.com/mutualmobile/MMDrawerController


SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
https://github.com/John-Lluch/SWRevealViewController


MSDynamicsDrawerViewController

Container view controller that leverages UIKit Dynamics to provide a realistic drawer navigation paradigm.

https://github.com/erichoracek/MSDynamicsDrawerViewController


ECSlidingViewController

Customizable sliding view controller container.

https://github.com/ECSlidingViewController/ECSlidingViewController


PPRevealSideViewController

A new container controller to easily push views on side like Path or Facebook

https://github.com/ipup/PPRevealSideViewController

Sunday, May 3, 2015

Nepal earthquake American Red Cross app store donations





Apple has made a feature in its app store to donate money to nepal. 
thanks a million apple thanks a lot ! 

Tuesday, April 7, 2015

Objective-C REST API Network Status Codes

Objective-C REST API Network Status Codes 

/*!
@typedef NS_ENUM (NSUInteger, kStatusInformation)
@abstract Informational responses.
@discussion
These are valid only in the scope of <Project Name>.
*/
typedef NS_ENUM(NSInteger, kStatusInformation) {
/*!
This interim response indicates that everything so far is OK
and that the client should continue with the request or ignore
it if it is already finished.
*/
kStatusInformation_Continue = 100,
/*!
This code is sent in response to an Upgrade: request header by
the client, and indicates that the protocol the server is switching too.
It was introduced to allow migration to an incompatible protocol version,
and is not in common use.
*/
kStatusInformation_SwitchingProtocol = 101,
};
 
 
/*!
@typedef NS_ENUM (NSUInteger, kStatusSuccess)
@abstract Successful responses.
@discussion
These are valid only in the scope of Momentage.
*/
typedef NS_ENUM(NSInteger, kStatusSuccess) {
/*! The request has succeeded. */
kStatusSuccess_OK = 200,
/*!
The request has succeeded and a new resource has been
created as a result of it.
This is typically the response sent after a PUT request.
*/
kStatusSuccess_Created = 201,
/*!
The request has been received but not yet acted upon.
It is non-committal, meaning that there is no way in HTTP to later send
an asynchronous response indicating the outcome of processing the request.
It is intended for cases where another process or server handles the request,
or for batch processing.
*/
kStatusSuccess_Accepted = 202,
/*!
This response code means returned meta-information set is not exact
set as available from the origin server, but collected from a local
or a third party copy. Except this condition, 200 OK response should
be preferred instead of this response.
*/
kStatusSuccess_PartialInfo = 203,
/*!
There is no content to send for this request, but the headers may be
useful. The user-agent may update its cached headers for this
resource with the new ones.
*/
kStatusSuccess_NoResponse = 204,
/*!
This response code is sent after accomplishing request to tell user
agent reset document view which sent this request.
*/
kStatusSuccess_RestContent = 205,
/*!
This response code is used because of range header sent by the client
to separate download into multiple streams.
*/
kStatusSuccess_PartialContent = 206,
/*! */
kStatusSuccess_251 = 251,
};
/*! */
 
/*!
@typedef NS_ENUM (NSUInteger, FBErrorCode)
@abstract Error codes returned by the Facebook SDK in NSError.
@discussion
These are valid only in the scope of FacebookSDKDomain.
*/
typedef NS_ENUM(NSInteger, APIErrorCode) {
APIErrorCodeMultipleChoice = 300
};
 
 
// 4xx Client error
/*!
@typedef NS_ENUM (NSUInteger, kStatusClientError)
@abstract Client error responses
@discussion
These are valid only in the scope of Momentage.
*/
typedef NS_ENUM(NSInteger, kStatusClientError) {
/*! */
kStatusClientError_BadRequest = 400,
/*! */
kStatusClientError_Unauthorized = 401,
/*! */
kStatusClientError_PaymentRequest = 402,
/*! */
kStatusClientError_Forbidden = 403,
/*! */
kStatusClientError_NotFound = 404,
/*! */
kStatusClientError_MethodNotAllowed = 405,
kStatusClientError_ExpectationFailed = 417,
};
 
// 5xx Server error responses
/*!
@typedef NS_ENUM (NSUInteger, kStatusServerError)
@abstract Client error responses
@discussion
These are valid only in the scope of Momentage.
*/
typedef NS_ENUM(NSInteger, kStatusServerError) {
/*! The server has encountered a situation it doesn't know how to handle. */
kStatusServerError_InternalError = 500,
/*!
The request method is not supported by the server and cannot be handled. The only
methods that servers are required to support (and therefore that must not return
this code) are GET and HEAD.
*/
kStatusServerError_NotImplemented = 501,
/*!
This error response means that the server, while working as a gateway to get a
response needed to handle the request, got an invalid response.
*/
kStatusServerError_BadGateway = 502,
/*!
The server is not ready to handle the request. Common causes are a server that is
down for maintenance or that is overloaded. Note that together with this response,
a user-friendly page explaining the problem should be sent. This responses should
be used for temporary conditions and the Retry-After: HTTP header should, if
possible, contain the estimated time before the recovery of the service. The
webmaster must also take care about the caching-related headers that are sent
along with this response, as these temporary condition responses should usually
not be cached.
*/
kStatusServerError_ServiceUnavailable = 503,
/*!
This error response is given when the server is acting as a gateway and cannot get
a response in time.
*/
kStatusServerError_GatewayTimeout = 504,
/*! The HTTP version used in the request is not supported by the server. */
kStatusServerError_HTTPVersionNotSupported = 505,
};

via - 
Github Gist

Other Links - 


Thursday, February 26, 2015

Solved : Slow MacBook Pro SSD after Partition problem


Last week I was given new Macbook Pro in my job at Leapfrog Technology


It was the exact same Macbook Pro config laptop I previously had at Leapfrog but there was no such issue like once I pressed power button it would show "Apple" logo and computer would login instantly within 5sec. But my new Mac took around 30sec before showing Apple logo and every time it booted for first time but after that every thing was normal.

So only thing I did after I got the macbook pro was using Disk Utility to make SDD's partition !



So I thought there might be the issue like bios is trying to search for the OS partition and its the timeout of 30sec which lead to boot from next partition.


So all I did was selected the "Startup Disk" from the "System Preferences" 
and Rebooted in the system Partition and boom the issue was gone :]




Thursday, December 11, 2014

Ncell brings iPhone in Nepal - iPhone 6, iPhone 6 Plus, iPhone 5s

For the first time in nepal there is officially iPhone !
Yes for the first time in the end of 2014, you can officially buy iPhones from NCell :]

As per todays exchange rate its 1$ = 100Rs,
Hence for US 650$ Sim-Free iPhone means - 65,000 Rs which with tax & vats will be around
70,000 Rs. Where as Ncell gives iPhone for 82,000 Rs is somewhat expensive !
Which is 12,000 Rs more then what you might be expecting but you do get total of 6Gb data free ( 1Gb for 6 months ).

iPhone 6



CapacityTotal PriceAmount Required for Booking
16GBRs. 81,999Rs. 10,000
64GBRs. 92, 499
128GBRs. 104,999

Available in Space Gray, Gold and Silver. All iPhone 6 comes with 1GB data every month for 6 months. To book your iPhone 6, visit Ncell Centres in Kathmandu today.


iPhone 6 Plus




CapacityTotal PriceAmount Required for Booking
16GBRs. 92,499Rs. 12,000
64GBRs. 104,999
128GBRs. 117,99
Available in Space Gray, Gold and Silver. All iPhone 6 Plus comes with 1GB data every month for 6 months. To book your iPhone 6 Plus, visit your nearest Ncell Centre today.

iPhone 5s


CapacityTotal PriceAmount Required for Booking
16GBRs. 67,199Rs. 8,000
32GBRs. 73,999
Avaiable in Space Gray, Gold and SiIver. All iPhone 5S comes with 300MB data every month for 6 months. To book your iPhone 5S, visit your nearest Ncell Centre today.

Links - 



Wednesday, October 22, 2014

iPad Air 2 vs iPad Mini 3 Which iPad to buy or not to buy

This year selecting Apple  product isn't as easy as it used to be.
The price matrix is not as simple, actually its quite complex !
To make things easy I have made a simple chart which shows which
is the iPad you should get and which is the iPad you should NOT !

From the matrix its clear if you don't have much money to spend iPad Mini 2, 16Gb is the best options for $299, but if you can afford to spend some cash on iPad, then iPad Air 2, 62Gb should be your option for $599.
Only make sure you don't end up buying iPad mini at $249 for its low price ! Its a two year old A5 chip inside and non-retina display ! Also there is a sad news - iPad mini 3 has no processor update in new model and hence carry the same A7 chip.



Sources :