Тег ‘Private’:

Эксперемент

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

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

Теги: , , , , , ,

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

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

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

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

Radio buttons for iPhone application

Presented simple and nice solution for radio buttons, based on the UIButton.
Add buttons on view of controller
for (int i = 0; i < 5; i++) {
        UIButton *but = [UIButton buttonWithType:UIButtonTypeCustom];
        [but setImage:[UIImage imageNamed:@"checkbox.png"] forState:UIControlStateNormal];
        [but setImage:[UIImage imageNamed:@"checkedbox.png"] forState:UIControlStateSelected];
        [but setFrame:CGRectMake(0, 0, 17, [...]

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

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

Disabling default zoom for UIWebView

Make and add custom object from UIView on top UIWebView

@interface CUIView : UIView {
    UIWebView *web;
    int time;
}
@property (nonatomic, assign) UIWebView *web;
@end
 
 
@implementation CUIView
 
@synthesize web;
 
-(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { 
 
    BOOL forwardToSuper = YES;
 
    if (time == (int)event.timestamp) {
            // prevent this
          [...]

Теги: , ,

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

touchBegan/touchEnd in custom UIWebView

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
#import <uikit /UIKit.h>
 
@interface PSWebView : UIWebView
@end
</uikit>

If you need add method touchBegan then make step by step
1. add after 6 line
- (void)webView:(UIWebView*)sender tappedBeganWithTouch:(UITouch*)touch event:(UIEvent*)event;

2. [...]

Теги: , , , , , ,

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

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)

How to include ttf fonts in iPhone app

Хороший способ подключения шрифтов.
Кидаем в ресурсы наш шрифт. Вставляем и выполняем функцию.
NSUInteger loadFonts()
{
    NSUInteger newFontCount = 0;
    NSBundle *frameworkBundle = [NSBundle bundleWithIdentifier:@"com.apple.GraphicsServices"];
    const char *frameworkPath = [[frameworkBundle executablePath] UTF8String];
    if (frameworkPath) {
        void *graphicsServices = dlopen(frameworkPath, RTLD_NOLOAD | RTLD_LAZY);
        if (graphicsServices) {
        [...]

Теги: , ,

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