Developing for iOS has been a blast thus far; its a nice break from Flex and Air. The syntax was a serious hurtle at first but thankfully I am over that now. It is not uncommon for me to receive designs that contain several layers just to pull off a header bar or button skin. That was the case last week when I received a design that had a header bar that was made up of two parts. A background that had an alpha and an additional layer that was an gradient with transparency. I searched far and wide but couldn’t find any iOS examples of gradients with transparency. The lack of examples and my relatively fresh knowledge of Obj-C lead me to creating my own class.
You can see examples and more explanation in the Full article… link below.
As you know, when working on iOS apps, you spend a considerable amount of time in the simulator. If your project deals with the Cameral Roll, you will find that the simulator doesn’t have any images in it. In the past I have done all my development on a device. This was slow and inefficient. I wrote a simple little app to populate the Camera Roll of the iPhone and iPad simulators.
There are complete instructions in the Full article… link below.
Happy Coding!Full article...
If you are like me, you are getting tired of using System Font and System Font Bold in your iOS apps. The other day I saw the familyNames field on the UIFont class. It returns an NSArray so I decided to dump the contents to the terminal. Click ‘Full Article…’ to see the complete list. I was really happy to see Helvetica Neue in the lineup.
myLabel = [UILabel new];
myLabel.frame = CGRectMake(0,0, 300, 100);
myLabel.font = [UIFont fontWithName:@"Baskerville" size:12];
Welcome to the brave new world of Flashbuilder 4 (previously known as Flexbuilder). Flashbuilder 4 has some very cool new features; this tutorial is going to cover the PHP portion of the new Data Services tab. Under the hood this feature is using the RemoteObject tag. Remoting is implemented using Action Message Format (AMF). This is a a binary format to move data between Flash and the back end. Flashbuilder uses ZendAMF to get this job done. There are several advantages to using ZendAMF; it works over port 80, its PHP based and best of all it’s FREE. Due to these facts, this framework will run on almost any web server without the need for Java or special port exceptions. This tutorial is going to cover how to set up a Flex project that is integrated with a PHP server, then it will cover how to configure AMF services and finally how to use them.
Is your Eclipse install running super slow or crashing with OutOfMemory error:PermGen Space erros? This is an easy fix that will save you lots of frustration as well as compile time. There is a file called eclipse.ini. On the mac you will have to right-click the eclipse application and choose ‘show package contents’. From there the eclipse.ini is located in ‘Contents/MacOS/’. Below is my default eclipse.ini file. As you can see, the -Xms and -Xmx flags are pretty low.
My computer has 4gigs or ram but there seems to be some max within eclipse. The max I have been able to get away with is 512m. So my updated eclipse.ini file can be seen below.
Save your new eclipse.ini and happy coding.
Page 1 of 1 pages