Universal web services suite for iPhone/iPad and Android apps
Categories: Android, Mac OS X, Mob1serv, iPad, iPhone on Feb.25, 2010
Hi there! We are a group of iPhone / Android developers who have developed a suite of web services to assist us and other developers in building great apps.
After numerous projects we have become tired of having to set up the server scripts to do all the same things for different clients. Most of the server functionality
is typical: 1) storing location data for Google Maps; 2) storing users’ high scores / ranks; 3) sending Push Notifications; 4) storing files / XML; etc.
We couldn’t use the existent solutions because in some cases they didn’t provide the required functionality and in most cases they require your users to be exposed to some social network of theirs, while our clients just want a simple functionality without users knowing of any services behind that.
So we have launched what we call Mob1serv, a universal server solution for the typical needs of iPhone / Android apps. It consists of modules which deal with most common tasks:
* High Scores – a powerful online high scores table
* PushNote – a module allowing to send immediate or delayed Push Notifications (you can build instant messengers or alarm clocks, anything with this)
* GeoPos – stores locations of Google Map objects, their statuses and ‘last seen online’ time
* OAuth contracter – allows you to implement transparent authentication and integration with Facebook, Twitter, Google etc
* More modules to come!
Custom UINavigationBar with image and back button
Categories: Apple, Mac OS X, OOP, iPad, iPhone on Feb.09, 2010
Many people could not find this solution! It’s really very simple solution and it does not contain any private methods and functions. It’s based on the drawRect method and the simple manipulation with the title. If the title is specified, then the text of title displays, but if not, then displays the image.
[Read more...]
Radio buttons for iPhone application
Categories: iPhone on Feb.03, 2010
Presented simple and nice solution for radio buttons, based on the UIButton.
Add buttons on view of controller
- for (int i = 0; i < 5; i++) {
- UIButton *but = [UIButton buttonWithType:UIButtonTypeCustom];
- [but setImage:[UIImage imageNamed:@"checkbox.png"] forState:UIControlStateNormal];
- [but setImage:[UIImage imageNamed:@"checkedbox.png"] forState:UIControlStateSelected];
- [but setFrame:CGRectMake(0, 0, 17, 17)];
- [but setCenter:CGPointMake( 50, i*40+20 )];
- [but addTarget:self action:@selector(checkboxButton:) forControlEvents:UIControlEventTouchUpInside];
- [self.view addSubview:but];
- }
How to launch AppStore application with request?
Categories: Apple, iPad, iPhone on Feb.02, 2010
If you will need launch AppStore application with search request – use this example
- NSString *str = @"itms-apps://ax.search.itunes.apple.com";
- str = [NSString stringWithFormat:@"%@/WebObjects/MZSearch.woa/wa/search?media=software&term=", str];
- str = [NSString stringWithFormat:@"%@3d4medical", str];
- [[UIApplication sharedApplication] openURL: [NSURL URLWithString:str]];
Samples code for iPad development from apple
Categories: Apple, Mac OS X, iPad, iPhone on Jan.29, 2010
ToolbarSearch
This sample shows how to use a search field in a toolbar. When you start a search, a table view displaying recent searches matching the current search string is displayed in a popover.
New controller:
- UIPopoverControllerDelegate
Create a navigation controller to contain the recent searches controller, and create the popover controller to contain the navigation controller.
- UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:recentSearchesController];
- UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:navigationController];
- self.recentSearchesPopoverController = popover;
- recentSearchesPopoverController.delegate = self;
Many information about development for iPad in one place
Categories: iPad on Jan.28, 2010

From Apple Site
Xcode/Developer Tools
- Changing an iPhone Executable’s working directory from “Build Products directory” may cause the application not to install properly with the error message “The Info.plist for application at (null) specifies a CFBundleExecutable of (null), which does not exist.”
- You may only use .png files for application icons for the device.
- The iPhone SDK is designed for Intel-based Macs and is not supported on PPC-based Macs.
- When running and debugging on a device, be sure to turn off Passcode lock.
- Trying to debug two applications at the same time on the same device fails with a broken pipe error in the debugger console.
Core Graphics
Use Matrix of rotate +MozOrientation
Categories: FireFox, Javascript on Jan.24, 2010
Previous post is simple example of usage MozOrientation. But now i use Matrix of rotate and i have nice animation.
You can read many information about Matrix of rotate here. These methods are used in game development, make animations and many others.
- var context = drawingCanvas.getContext('2d');
- var xc = 75;
- var yc = 75;
- var xi = 0;
- var yi = 0;
- var myImage = new Image();
- var angle = (Math.PI/2)*-o.x;
- myImage.onload = function() {
- context.clearRect(0,0,150,150);
- context.save();
- xi = xi*Math.cos(angle)-yi*Math.sin(angle)-xc;
- yi = yi*Math.sin(angle)+yi*Math.cos(angle)-yc;
- context.translate( xc , yc);
- context.rotate(angle);
- context.scale(1+o.y,1+o.y);
- context.drawImage(myImage, xi, yi);
- context.restore();
- }
- myImage.src = "feedme.png";
Result:
[Read more...]

2. Add an element “NSImageView” on main view in the MainMenu.xib




(4 votes, average: 4.50 out of 5)



