Тег ‘iPad’:

Эксперемент

Написал простенькую программку ради эксперимента. С помощью программы можно ходит по корневому разделу системы, без Jailbreak. Если кто-то имеет опыт как создать фаил в директории не принадлежащей программе,  без взлома устройства, и поделится! Буду очень признателен!

И собственно сам код

Теги: , , , , , ,

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

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)

купил iPad :)

Как вы уже поняли речь пойдет про iPad :) Девайс удобный и очень впечетляющий, но все же напоминает большой айпод тач. Огорчает отсутствие камеры. В целом ничего особенного, беру его в руки в основном когда нужно работать или почитать письма и посерфить немного.
На последней фотографии видно как отлично можно использовать устройство для презентаций. Этот пост [...]

Теги: , ,

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

Make gradient on iPhone/iPad

It’s easy! As of iPhone SDK 3.0, custom gradients can be implemented very easily, without subclassing or images, by using the new CAGradientLayer
add framework
#import < QuartzCore/QuartzCore.h>

so, example:

Теги: , , , , , ,

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

Simple XML Parser based on NSXMLParser +converter

Simple XML Parser based on NSXMLParser +converter to XML file
How To Setup:
insert next code to file “name of you project”_Prefix.pch
#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
NSURL *URLToFile = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"source" ofType:@"xml"]];
   
    XMLParser *parser [...]

Теги: , , , , , ,

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

Streatch image with stretchableImageWithLeftCapWidth: topCapHeight:

Sample
+ (UIImage*)greenBubble
{
    if (sGreenBubble == nil) {
        UIImage *i = [UIImage imageNamed:@"Balloon_1.png"];
        sGreenBubble = [[i stretchableImageWithLeftCapWidth:15 topCapHeight:13] retain];
    }
    return sGreenBubble;
}
 
+ (UIImage*)grayBubble
{
    if (sGrayBubble == nil) {
        UIImage *i = [UIImage imageNamed:@"Balloon_2.png"];
        sGrayBubble = [[i stretchableImageWithLeftCapWidth:21 topCapHeight:13] retain];
    [...]

Теги: , , , , ,

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

Universal web services suite for iPhone/iPad and Android apps

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

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

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

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

Теги: , , , , ,

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

How to launch AppStore application with request?

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]];

Теги: , , , , , ,

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