Github for Magical Record Demo

You can grab the repo here, I used CocoaPods for MagicalRecord but it should be included in the repo. Run `pod update` if this becomes out of date.

https://github.com/mkral/MagicalRecordDemo

CISimple, and why it’s awesome

So you may have used jenkins for a CI (continuos integration) server, but when you’re an indie developer and you have multiple people committing but no dedicated machine for the CI Server it can be a real pain. Not to mention building with the command line tools can be a bit of a nightmare. CISimple makes it just that, simple.
logo

 

What’s great about cisimple is they connect to your github account build on commit-hooks and can push to testflight. In my next post I’m going to go over the step-by-step process of this as well as showing you how to connect your bitbucket repos to the cisimple interface.

If you don’t know about bitbucket it’s very similar to github but they have plans for free private repos, that can be really helpful when you don’t have the money to purchase a github account.

UIImage, UIButton and stretchable images

This is a quick little post about stretchable images and how you can have more advanced background than just a vertical gradient.

Since you are setting the left cap / top cap, you can add complex images that will not be stretched and then repeat the 1px to the right and bottom of those caps and leave the rest to scale. Here’s an image from the BIT 101 blog to make it easy to see:

stretchable

 

Using this technique we can turn this image:

whiteButtonWithArrow@2x

Into this UIButton for iOS:

Screen Shot 2013-02-18 at 7.24.23 PM

And it’s all pretty simple in code, check it out!

UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 320, 44)];

UIImage *backgroundImage = [[UIImage imageNamed:@"whiteButtonWithArrow"] stretchableImageWithLeftCapWidth:6 topCapHeight:0];

[button setBackgroundImage:backgroundImage forState:UIControlStateNormal];

https://gist.github.com/mkral/4982488

ANNOUNCEMENT: Magical Record Tutorial and Presentation

I will be giving a presentation at the meetup group, iOS Developers Support Group, March 6th 2013 at 7:00pm. I will be covering the basics of Core Data and using Magical Record to easily start using Core Data in your projects. Topics I’ll likely cover:

  • Basics of Core Data
  • Setting Up a Managed Object Model
  • Creating Relationships
  • Creating and Fetching Managed Objects
  • Magical Record – Actions (background fetching)

The topics covered will be very light, so don’t worry if you don’t have any previous experience with Core Data.

Again.

It seems I create a wordpress, do nothing with it, then switch hosting and spend another day setting it up down the road. This time I’m going to be better about posting, specifically about Obj-C / iOS Development. I’ve been working on a few cool projects and I want to write up some stuff about that as well.


Tags