Рубрика: ‘OOP’

UML диаграммы в Xcode

На написание данного поста меня с подвигла недавняя задача! Мне нужно было для записки и слайдов дипломного проекта предоставить UML диаграммы. Сначала по гуглил и сразу попал на страницу одной софтины, которая называется MacTranslator, забегая на перед, т.к. многие могут просто не дочитать, НЕ РЕКОМЕНДУЮ ее покапать, хотя вряд ли ее кто и купит из [...]

Теги: , , , ,

Комментарии отсутствуют

UIImage and Memory

+[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 [...]

Теги: , , , , , , , ,

Комментарии отсутствуют

iPhone 3D Samples from “iPhone 3D Programming” book

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

Теги: , , , , , , ,

Комментарий (1)

Good book!

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 [...]

Теги: , , , , ,

Комментарии отсутствуют

В свободное время

В свободное время решил поработать немного над созданием простого клиента для социальной сети “Вконтакте”. Хочу поделиться маленьким результатом. Это пока скромная версия, которая может вывести список, отправить сообщение, изменить статус и еще несколько мелочей…
Я не руководился тем нужно это или нет, просто было интересно поработать с новым API от “Вконтакте”.
Спасибо за [...]

Теги: , , , , , , , , ,

Комментарии отсутствуют

Custom UINavigationBar with image and back button

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 [...]

Теги: , , , , ,

Комментарий (1)

How to find bug in xCode project of iPhone application.

Теги: , , , , , , , ,

Комментарии отсутствуют

call controller methods from class

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 [...]

Теги: , ,

Комментарии отсутствуют

Rewrite UITabBar and UITabBarItem iPhone

Вариант 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, но о нем [...]

Теги: , , , , , ,

Комментариев (4)

Objective-c MD5 hash

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], [...]

Теги:

Комментарии отсутствуют