Xcode – Missing ‘Empty Application’ Template

Where has the Empty Application Template gone in Xcode?

Add it back from here

http://www.reddit.com/r/iOSProgramming/comments/2a3jyr/xcode_6_beta_3_removes_empty_application_option/

MFMailComposeViewController

I used the following tutorial to get an email to send in the app.

http://www.appcoda.com/tag/mfmailcomposeviewcontroller/

The issue i then came across was it didn’t have the white theme I needed.

I now would like the first responder to be the Body so you can start typing from the get go.

Navigation Bar / Tab Bar / Status Bar Colours

http://www.appcoda.com/customize-navigation-status-bar-ios-7/ Add to .plist

View controller-based status bar appearance

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch. [[UINavigationBar appearance] setBarTintColor:[UIColor blackColor]];
//[[UINavigationBar appearance] setBarTintColor:UIColorFromRGB(0x067AB5)];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]}];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
return YES;
}

Tab Bar

[[UITabBar appearance] setTintColor:[UIColor redColor]]; [[UITabBar appearance] setBarTintColor:[UIColor yellowColor]];

Change the highlighted colour

[[UITabBarItem appearance] setTitleTextAttributes:@{ NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Bold" size:10.0f], NSForegroundColorAttributeName : [UIColor colorWithRed:0/255.0 green:138/255.0 blue:196/255.0 alpha:1.0],} forState:UIControlStateSelected];


navigationBar.barStyle = UIBarStyleBlackOpaque;

App not fitting the full screen

Had an issue where I created a brand new app in Xcode 6.
It uses a story board with a tab bar set up.
Whenever I ran it on my phone it wasn’t going full screen.

I added an Default image for the splash screen and used an Image Catalog instead of the LaunchScreen.xib and it started working again.

Default-586h@2x (640 × 1136)
Default@2x (640 × 960)

Replace


xLabel.text = [STRING stringByReplacingOccurrencesOfString:@" " withString:@""];


-(NSString *) stringByStrippingHTML: (NSString *)strValue {
NSRange r;
while ((r = [strValue rangeOfString:@"]+>" options:NSRegularExpressionSearch]).location != NSNotFound)
strValue = [strValue stringByReplacingCharactersInRange:r withString:@""];
return strValue;
}

HTML

NSString *cleanTitle = facebookPost.title;
cleanTitle = [cleanTitle stringByReplacingOccurrencesOfString:@"'" withString:@"'"];
cleanTitle = [cleanTitle stringByReplacingOccurrencesOfString:@"&#064" withString:@"@"];
cell.textLabel.text = cleanTitle;

Vimeo API

Vimeo API

JSON URL:
http://vimeo.com/api/v2/USERNAME/videos.json

YouTube – Unplugged

So I’ve started parsing the YouTube feed of uploads for a User, the User being Uplugged.

URL: http://gdata.youtube.com/feeds/api/users/unpluggedacoustic1/uploads/?alt=json

Here is the result so far.

YouTube - Unplugged
Updated:
YouTube - Unplugged (2)

See previous posts for parsing tips.

Follow

Get every new post delivered to your Inbox.