Тег ‘Кодинг’:
Рубрики: 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 [...]
Теги: Android, Apple, iPad, iPhone, life, Mob1serv, objective-c, OOP, Private, work, Кодинг
Рубрики: 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 [...]
Теги: Apple, iPad, iPhone, UIKit, UINavigationBar, Кодинг
Рубрики: 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, [...]
Теги: Apple, iPhone, objective-c, OOP, Private, UIButton, UIImage, UIKit, Кодинг
Рубрики: 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]];
Теги: AppStore, iPad, iPhone, Mac OS X, objective-c, OOP, Кодинг
Рубрики: 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 [...]
Теги: Apple, iPad, New, SDK, Кодинг
Рубрики: 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 = [...]
Теги: FireFox, Javascript, Mac, Matrix, MozOrientation, OOP, work, Кодинг
Рубрики: Apple, OOP, iPhone on Jan.18, 2010
Теги: Apple, Debugger, iPhone, objective-c, OOP, OS, QA, UIKit, Кодинг
Рубрики: iPhone on Jan.15, 2010
Here is a little tip on how to tell if a string contains another string, using the underused data type NSRange.
NSRange gives the starting location and the length of a given value, and is often used with arrays and strings. On this occasion we will use it to find the range of a substring within [...]
Теги: Apple, iPhone, NSString, objective-c, OOP, xCode, Кодинг
Рубрики: Apple, iPhone on Dec.26, 2009
Make image with a mask!
Source:
- (UIImage*) maskImage:(UIImage *)image {
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
UIImage *maskImage = [UIImage imageNamed:@"mask.png"];
CGImageRef maskImageRef = [maskImage CGImage];
// create a bitmap graphics context the size of the image
CGContextRef mainViewContentContext = CGBitmapContextCreate (NULL, maskImage.size.width, maskImage.size.height, 8, 0, [...]
Теги: Apple, iPhone, Mac OS X, objective-c, Texture, UIKit, work, xCode, Кодинг
Рубрики: Mac OS X, iPhone on Dec.09, 2009
Rotate object / image 360 degrees on iphone
For anyone following along, you’ll need to add the QuartzCore Framework to your project and include the
#import <QuartzCore/QuartzCore.h>
Add animation for object:
CABasicAnimation *fullRotation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
fullRotation.fromValue = [NSNumber numberWithFloat:0];
fullRotation.toValue = [NSNumber numberWithFloat:((360*M_PI)/180)];
fullRotation.duration = 6;
fullRotation.repeatCount = 1e100f;
[myview.layer addAnimation:fullRotation forKey:@"360"];
Remove all animations for object:
[myview.layer removeAllAnimations];
Source
Теги: objective-c, UIKit, Кодинг