Тег ‘work’:
Рубрики: iPhone on Oct.29, 2011
Example: 1234567891011121314151617181920212223242526272829303132333435363738394041- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. if (self.cPicker == nil) { [self.view setBackgroundColor:[UIColor grayColor]]; self.cPicker = [[VBColorPicker alloc] initWithFrame:CGRectMake(0, 0, 202, 202)]; [...]
Теги: iOS, iPhone, objective-c, OOP, UIColor, UIImage, Ukraine, work, Кодинг
Рубрики: iPad, iPhone, OOP on Jun.10, 2010
+[UIImage imageNamed:] • Reads the file, uncompresses it, caches result • Cached copy of data is kept even if the UIImage is deallocated • Low memory condition causes cache to be purged. • No direct control over when cache is purged. • Use for small frequently drawn images. +[UIImage imageWithContentsOfFile:] • Just reads enough of [...]
Теги: iPad, iPhone, Memory, objective-c, UIImage, UIKit, Ukraine, work, Кодинг
Рубрики: Apple, iPad, iPhone, Mac OS X on Apr.21, 2010
Simple XML Parser based on NSXMLParser +converter to XML file How To Setup: insert next code to file “name of you project”_Prefix.pch 123 #import "XMLNode.h" #import "XMLParser.h" #import "XMLConvert.h" Create and launching XMLParser. You will get parsed data ( with XMLNode data type ) in callbackParser: method 12345678 NSURL [...]
Теги: iPad, iPhone, Mac OS X, objective-c, OOP, work, XML
Рубрики: Mac OS X, Tutorials on Feb.26, 2010
Step by step for starter developers… 1. Create a project in xCode with name “DragAndDrop” or any else…2. Add an element “NSImageView” on main view in the MainMenu.xib
Теги: Apple, Mac OS X, NS, objective-c, OOP, Tutorials, work, Xcode
Рубрики: Android, iPad, iPhone, Mac OS X, Mob1serv 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 [...]
Теги: Android, Apple, iPad, iPhone, life, Mob1serv, objective-c, OOP, Private, work, Кодинг
Рубрики: 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. 123456789101112131415161718192021222324252627var context = drawingCanvas.getContext(’2d’); var xc = 75; var yc = 75; var [...]
Теги: FireFox, Javascript, Mac, Matrix, MozOrientation, OOP, work, Кодинг
Рубрики: Apple, iPhone on Dec.26, 2009
Make image with a mask! Source: 123456789101112131415161718192021222324252627282930313233343536373839404142- (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 [...]
Теги: Apple, iPhone, Mac OS X, objective-c, Texture, UIKit, work, Xcode, Кодинг
Рубрики: iPhone on Oct.31, 2009
The main disadvantage in the object UIWebView is lack of methods touchBegan and touchEnd. But this question has been settled by some manipulations with privates possibilities:) Thank you Satoshi Nakagawa :) PSWebView.h – empty 12345#import <uikit /UIKit.h> @interface PSWebView : UIWebView @end </uikit> If you need add method touchBegan then make step by step 1. [...]
Теги: iPhone, objective-c, OOP, Private, UIWebView, work, Кодинг
Рубрики: iPhone, OOP on Aug.05, 2009
Не работает touchesBegan и touchesEnded в UIScrollView Что делать? Много людей пишет об этой проблеме. Для себя я нашел не совсем стандартное решение. К примеру есть контроллер X в котором наш UIScrollView. в этом же контроллере создадим UIView, но не совсем стандартный, а подготовленный зараннее и передюющий все ивенты в наш контроллер X и вставим [...]
Теги: iPhone, objective-c, OOP, work
Рубрики: iPhone on Mar.28, 2009
Опишу как связывал UITableView и UISearchBar. Вот пару примеров: К примеру у нас есть indexArray (NSArray) c объектами NSString. Нужно засунуть этот массив в табличку и связать с поисковой панелью. Прежде рекомендую отсортировать весь массив, т.к. он в UITableView будет отсортирован только по заглавным буквам. 1234567891011121314151617 NSInteger alphabeticSort(id string1, id string2, void *reverse) { [...]
Теги: iPhone, objective-c, work, Xcode