Рубрика: ‘OOP’
Рубрики: Apple, OOP, others on Jun.12, 2010
На написание данного поста меня с подвигла недавняя задача! Мне нужно было для записки и слайдов дипломного проекта предоставить UML диаграммы. Сначала по гуглил и сразу попал на страницу одной софтины, которая называется MacTranslator, забегая на перед, т.к. многие могут просто не дочитать, НЕ РЕКОМЕНДУЮ ее покапать, хотя вряд ли ее кто и купит из [...]
Теги: objective-c, OOP, UML, xCode, Кодинг
Рубрики: OOP, iPad, iPhone 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 file to determine if it can open [...]
Теги: iPad, iPhone, Memory, objective-c, UIImage, UIKit, Ukraine, work, Кодинг
Рубрики: Apple, OOP, Tutorials, iPad, iPhone on Jun.09, 2010
iPhone 3D Samples from “iPhone 3D Programming Developing Graphical Applications with OpenGL ES” book.
Thanks Frank and Doris Rideout and O’REILLY
31 iPhone 3D Samples OpenGL ES 1.1 and 2.0
All links direct to http://examples.oreilly.com/
All Samples
HelloArrow
Теги: Book, C, ES 2.0, iPad, iPhone, OOP, OpenGL, Кодинг
Рубрики: Apple, Mac OS X, OOP, Tutorials, iPad, iPhone on Jun.08, 2010
Do you have a great idea for a graphics-intensive iPhone or iPad application, but don’t know how to bring it to life? This book offers the perfect solution: a crash course on the OpenGL graphics library with an overview of iPhone 3D development. Whether you’re an experienced OpenGL developer looking to build iPhone apps for [...]
Теги: Apple, Book, iPhone, objective-c, OpenGL, Кодинг
Рубрики: Apple, Mac OS X, OOP on May.02, 2010
В свободное время решил поработать немного над созданием простого клиента для социальной сети “Вконтакте”. Хочу поделиться маленьким результатом. Это пока скромная версия, которая может вывести список, отправить сообщение, изменить статус и еще несколько мелочей…
Я не руководился тем нужно это или нет, просто было интересно поработать с новым API от “Вконтакте”.
Спасибо за [...]
Теги: Apple, Cocoa, Free Time, iPhone, Mac OS X, objective-c, OOP, Vkontakte, xCode, Кодинг
Рубрики: 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, Кодинг
Рубрики: Apple, OOP, iPhone on Jan.18, 2010
Теги: Apple, Debugger, iPhone, objective-c, OOP, OS, QA, UIKit, Кодинг
Рубрики: OOP, iPhone on Jan.14, 2010
I created a class (Foo.m) which I would like to be able to call a method in the controller (MainViewController.m) which instantiated it. How do I do this?
One way you can do this is to create a property in your Foo class that references its creator. You should not retain this reference to avoid circular [...]
Теги: objective-c, OOP, xCode
Рубрики: OOP, iPhone on Oct.08, 2009
Вариант 1
Вкратце о чем нужно помнить!
Самое главное, если вы используете какие-то переменные из приват фреймверков и для них не прописаны property, обязательно пропишите! Иначе при компиляции на эти переменные будет ругаться компилятор к примеру так:
"_OBJC_IVAR_$_UITabBarItem._selectedImage", referenced from:
_OBJC_IVAR_$_UITabBarItem._selectedImage$non_lazy_ptr in UICategory.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Рассказывать тут не очем кроме quartz, но о нем [...]
Теги: Apple, iPhone, objective-c, OOP, Private, Rewrite, UITabBar
Рубрики: Mac OS X, OOP, iPhone on Aug.27, 2009
This is a simple md5 implementation.
Add a file CommonDigest.h in your project from
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk /usr/include/CommonCrypto/
#import "CommonDigest.h"
+ (NSString *)uniqueIDFromString:(NSString *)source
{
const char *src = [[source lowercaseString] UTF8String];
unsigned char result[CC_MD5_DIGEST_LENGTH];
CC_MD5(src, strlen(src), result);
NSString *ret = [[[NSString alloc] initWithFormat:@"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X",
result[0], result[1], [...]
Теги: objective-c