label.textAlignment = UITextAlignmentCenter
; //warning gives in it
To solve that issue
In iOS6 and above we can use
label.textAlignment = NSTextAlignmentCenter;
//simply replace UITextAlignmentCenter by NSTextAlignmen
label.textAlignment = UITextAlignmentCenter
; //warning gives in it
label.textAlignment = NSTextAlignmentCenter;
//simply replace UITextAlignmentCenter by NSTextAlignmen
#import <netinet/in.h>
in Reachability.h to get away with this
[self dismissModalViewControllerAnimated:YES];
[
self
dismissViewControllerAnimated:YES completion:nil];"presentModalViewController" that method is deprecated in iOS 6.0,so Xcode gives warning when your build run on iOS 6.0 and above version.. so simply we can resolve that warning as Replace
[self presentModalViewController:MenuVC animated:YES completion:nil]; To
[ self presentViewController: MenuVC animated:YES completion:nil]; |
int count = [myColors count];
//that gives warning as "Implicit conversion loses integer precision :"NsInteger' (aka 'long') to 'int'
int count =
(int) [myColors count];//simply typecast this and warning will be resolve
Features: - Integrated with Google Drive - It's own backend service to store and share data between coworkers - convenient HTTP headers and payload editor thanks CodeMirror - Make a HTTP request (via XmlHttpRequest level 2) - Debug socket (via web socket API). - JSON response viewer - XML response viewer - set custom headers - even does not supported by XmlHttpRequest object - help with filling HTTP headers (hint + code completion) - add headers list as raw data or via form - construct POST or PUT body via raw input, form or send file(s) with request - set custom form encoding - remember latest request (save current form state and restore on load) - save (Ctrl+S) and open (Ctrl+O) saved request forms - history support - data import/export
**Features** *Create requests quickly* - Compact layout - HTTP requests with file upload support - Formatted API responses for JSON and XML - Open responses as an HTML file in a new window - HATEOAS support - Image previews - Request history - Basic and OAuth 1.0 helpers - Autocomplete for URL and header values - Key/value editors for adding parameters or header values. Works for URL parameters too. - Use environment variables to easily shift between settings. Great for testing production, staging or local setups. - Use Global variables for values which are common throughout APIs - Use the quick look feature to preview variables and their values before you use them - Keyboard shortcuts to maximize your productivity
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:userNameText forKey:@"username"];
[defaults setObject:passWordText forKey:@"password"];
[defaults synchronize];
// Redirected to another
viewController .
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults removeObjectForKey:@"username"];
[defaults removeObjectForKey:@"password"];
[defaults synchronize];
// Redirected to Main viewController or
Login viewController .
ViewDidAppear
of Loginpage.