Рубрика: ‘OOP’

ScrollView with scroll’s indicators, which are shown all the time.

My simple solution by writing category for UIImageView, because scroller is imageview. How to use :) Just setup tag for your scrollview and you will get one with scroll indicators, which are shown all the time. 1234567891011121314151617181920212223242526272829303132#define noDisableVerticalScrollTag 836913 #define noDisableHorizontalScrollTag 836914 @implementation UIImageView (ForScrollView) – (void) setAlpha:(float)alpha {         if (self.superview.tag [...]

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

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

Integrate High Scores service of mob1serv

Для начала нужно немного ознакомиться на сайте mob1serv как это работает. Скачать либу с сайта или которую собрал я, немного модифицированную, добавил пару расширений. В мой версии также вложен пример с сайта mob1serv. Начнем… 1. Нам нужно проверить интернет соединение, лучше всего воспользоваться Reachability, уже готовым решением от разработчиков Apple. На этом моменте останавливаться не [...]

Теги: , , , , , ,

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

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

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

Теги: , , , ,

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

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

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

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

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 от “Вконтакте”. Спасибо за внимания, если [...]

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

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

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 image.

Теги: , , , , ,

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

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

Теги: , ,

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