Showing posts with label iOS Programming Course Singapore. Show all posts
Showing posts with label iOS Programming Course Singapore. Show all posts

Sunday, April 28, 2013

Xamarin Tip: Loading an Image


You have some images in your application bundle and want to display one of the images in your application UI.

Assuming you have the Images folder within the Resources folder. Within the Images folder, you have an image named “A Good Day to Die Hard.jpg”. You can load an UIImageView view with the following method:

    this.imageView.Image = 
        UIImage.FromFile("Images/A Good Day to Die Hard.jpg");
The UIImage.FromFile() method loads the image asynchronously. It also allows the application to load the image from an external location.

Alternatively, you can also use the UIImage.FromBundle() method to load the image:

this.imageView.Image = 
    UIImage.FromBundle("Images/A Good Day to Die Hard.jpg");

Unlike the UIImage.FromFile() method, the UIImage.FromBundle() method is a blocking call and only loads images from within the application bundle. However, it caches the images aftre loading it. In general, use the UIImage.FromBundle() method if you need to frequently load the same image. Otherwise, use the UIImage.FromFile() method as it is asynchronous and will not block your UI. 

Saturday, April 20, 2013

iOS Tip - Obtaining the height of a string to be displayed based on width, font and font size

A lot of times, you need to display a string of text on your iOS app UI. For example, you may need to create an image to contain a string of text (like displaying a bubble containing a SMS message) and hence need to calculate the height taken up by the text based on the width that you are using to display the text. The following code snippet calculates the height of text based on the width specified, as well as the standard system font and specified font size:


//---calculate the height needed to display the text
// based on given width, font, and font size---
-(CGFloat) textHeight:(NSString *) text withWidth:(int) viewWidth andSize:(int) fontSize{
CGSize maximumTextSize = CGSizeMake(viewWidth,9999);
CGSize expectedTextSize = [text sizeWithFont:[UIFont systemFontOfSize: fontSize]
                               constrainedToSize:maximumTextSize
                                   lineBreakMode:NSLineBreakByWordWrapping];
return expectedTextSize.height;
}


To use the textHeight:withWidth:andSize: method, simply call it like this:


    float textHeight = [self textHeight:@"The quick brown fox jumps over the lazy dog" 
                              withWidth:300 
                                andSize:15];


Have fun!

Monday, April 09, 2012

Schedule for Courses in Singapore

Here is the schedule for classes that I offer to the public. Courses can be customized and delivered at your site. For more information, please contact me at weimenglee@learn2develop.net. You can also contact me via phone at (65) 9-692-4065. 


Click on the link for each course to download the course outline and application forms.

Courses
April 2012
May 2012
June 2012
July 2012
Aug 2012
Sep 2012
Objective-C Programming
S$599/pax




8 Aug
10 Sep
21-22 April (Weekend class)
9-10 May

5-6 July

14-15 July (Weekend class)
13-14 Aug
11-12 Sep

15-16 May




20 April
11 May

10 July
16 Aug
13 Sep



11 July





12 July
15 Aug
14 Sep



13 July
17 Aug








26-27 April
17-18 May
19-20 May (Weekend class)

19-20 July
21-22 Aug
17-18 Sep

24-25 May



19-20 Sep



26 July
23 Aug




27 July
24 Aug

































* Confirmed class
This course schedule is continually being updated. Check back again if the course you want has not been scheduled yet. 

Sunday, February 19, 2012

New iOS 5 Course - Storyboard - 19 March 2012


I am happy to announce that there will be a new course on iOS 5 - Using Storyboard in iOS 5. As you are probably aware, Storyboard is one of the new features announced in iOS 5. Using Storyboard, you can now focus your effort on writing great applications and spend less time worrying about the user interface. If you have always wanted to get started with Storyboard but find it difficult to learn, this course it for you. 

     For quick registration, please send me an email at weimenglee@learn2develop.net.

Sunday, February 05, 2012

Programmatically set the values of fields in HTML page


Most iOS developers are aware that you can use the UIWebView to load a HTML page/string. However, how does your code interact with your pay? In this sample project, you will see how you can use Objective-C to programmatically fill in the fields in the HTML page.

Saturday, February 04, 2012

Combining View Controllers - iOS


One of the commonly asked questions that beginning iOS developers always asked is how to combine the tabbed-bar controller together with the navigation-controller. In the video above, I have demonstrated this by building a simple application. I have also made the source code available - you can download it here. Enjoy!

Thursday, October 13, 2011

Upcoming iOS and Android Courses (Singapore) - Nov-Dec 2011

Here is the upcoming schedule for iOS and Android courses in Singapore:

23 Nov 2011 - Objective-C Programming
24-25 Nov 2011 - Foundation of iPhone Programming
29-30 Nov 2011 - Foundation of Android Programming
1 -2 Dec 2011 - Advanced Android Programming

For quick registration, send me an email at weimenglee@learn2develop.net

Course Venue
229 Mountbatten Road
#02-41 Mountbatten Square
Singapore 398007
Time: 9am to 5pm

Download course outlines and application form here.

Wednesday, September 14, 2011

iOS Course Schedules in Oct 2011 (Singapore)

Here is the schedule for the various iOS Courses in Oct 2011:

1-Day Objective-C Programming Course - S$499
10 Oct 2011 (Singapore)

2-Day Foundation of iPhone Programming Course - S$997
11-12 Oct 2011 (Singapore)

2-Day Advanced iOS Programming Course - S$997
13-14 Oct 2011 (Singapore)

Register now by emailing me at weimenglee@learn2develop.net. Check out the course outlines at: http://weimenglee.blogspot.com/p/ios-development-training.html

Course Venue
229 Mountbatten Road
#02-41 Mountbatten Square
Singapore 398007
Time: 9am to 5pm

Class Photo of Foundation of iPhone Programming -13-14 Sep 2011

All my iOS courses are now fully updated to Xcode 4.1. Here is the class photo for this week's Foundation of iPhone Programming class. Can't wait for iOS 5.0 and Xcode 4.2!

Friday, September 02, 2011

Using your Borders Gift Card (Singapore) to offset against my courses

Recently, it was reported in the Singapore papers that due to the closure of Borders at Wheelock place, customers could no longer use its previously issued gift cards to make purchases at other branches. While this is a very disappointing news to a lot of customers, I have decided to follow the spirit of German Airline Lufthansa, who has very generously offered to let customers offset their air tickets value using their existing gift card.

As a book lover myself, I visit book stores regularly, especially Borders. I had been going there since I was a student, and had many fond memories. The smell and feel of books, and the aroma of coffee that fills the store has become a part of many peoples' lives.

Hence, I would like to offer existing Borders gift card holders to offset the fees for my courses using their existing Borders gift card. Every customer can offset a maximum of S$50 for any courses that they sign up. At this moment, here are the courses scheduled to run in Sep and Oct 2011:

September 2011
* 12 Sep 2011 - Objective-C Programming - S$499
* 13-14 Sep 2011 - Foundation of iPhone Programming - S$997
* 15-16 Sep 2011 - Advanced iOS Programming - S$997
* 19-20 Sep 2011 - Android Programming - S$997

October 2011
* 3 Oct 2011 - Objective-C Programming - S$499
* 4-5 Oct 2011 - Foundation of iPhone Programming - S$997

Details
* All courses will be held at Mountbatten Square, Singapore.
* Attendees have to bring their own notebook computers
* Training time: 9am to 5pm.

For enquiries, please call (65) 9-692-4065.

Tuesday, August 30, 2011

iOS and Android courses (SINGAPORE) in Sep 2011 confirmed!

I am happy to announce that the following iOS and Android courses in Sep are now confirmed!

* 12 Sep 2011 - Objective-C Programming - S$499
* 13-14 Sep 2011 - Foundation of iPhone Programming - S$997
* 15-16 Sep 2011 - Advanced iOS Programming - S$997
* 19-20 Sep 2011 - Android Programming - S$997

Come join us and get a copy of my Beginning iOS 4 Application Development (for the iPhone course) and Beginning Android Application Development (for the Android course) book when you sign up for the courses!

Friday, July 29, 2011

Schedule for iOS Programming Course and Android Programming Course in Sep and Oct 2011 (Singapore)

Quite a number of readers have asked about the schedule of iOS Programming Course and Android Programming Course (Singapore) in Sep and Oct, so here it is!

September 2011
* 12 Sep 2011 - Objective-C Programming - S$499
* 13-14 Sep 2011 - Foundation of iPhone Programming - S$997
* 15-16 Sep 2011 - Advanced iOS Programming - S$997
* 19-20 Sep 2011 - Android Programming - S$997
* 22-23 Sep 2011 - Programming iOS 5 - S$997

October 2011
* 3 Oct 2011 - Objective-C Programming - S$499
* 4-5 Oct 2011 - Foundation of iPhone Programming - S$997
* 6-7 Oct 2011 - Programming iOS 5 - S$997

Details
All courses will be held at Mountbatten Square, Singapore.
Attendees have to bring their own notebook computers
Training time: 9am to 5pm.
For enquiries, please call (65) 9-692-4065.

* Also, all iOS courses are now fully updated to cover Xcode 4.
* And as soon as iOS 5 is officially released, all iOS courses would be based on iOS 5.

You can download the course brochures and application form here.
Please scan a copy of the completed registration form and email it to weimenglee@learn2develop.net.

Sunday, July 24, 2011

Foundation of iPhone Programming - 21-22 July 2011

Here is another fun iPhone programming course that I had conducted last week. As usual, after the class I think I have converted a few people to buy their first Mac in their life. :-)

And what a time to run the course, Apple just released Lion and a slew of new machines....Mac Mini and MacBook air.....