Free application for iPad

Essential Skeleton iconEssential Skeleton allows users to rotate the model at any angle, view bones in isolation, listen to audio pronunciations of bones, annotate & share media and quiz yourself on what you have learned. This app is being offered free to demonstrate the groundbreaking 3D technology and innovative design inherent in Essential Anatomy.

Download Essential Skeleton

Leave a Comment

 

Latest app…

I want just leave here couple screenshots, no time for review and description. You can read about app here

Essential Anatomy iPad app, application

essential anatomy iPad and Mac app

Or Essential Anatomy iTunes link

Yes, I’m working in 3D4Medical company.

Tags: , , , , ,

One Comment

 

How to extend existing method

With blocks it’s more easy if you need extend your method. But if you will need extend some method of another class, not yours, and you will not be able to get the sources then this solution for you. (And if you will not be able or does not have any reason for creating a subclass)

1. You need create a category of class

2. import runtime in implementation file (.m)

1
#import <objc/runtime.h>

3. implement your method inside category, for example :

1
2
3
4
5
6
7
8
9
- (void) extend_method {

// your code

//  here will be performed the original method
    [self extend_method];
   
// your code
}

It looks like this method has recursive calls itself, but it’s not true. Look next step

4. add method for replace (you can use +initialize or +load)

1
2
3
4
5
+ (void) initialize {
    Method original = class_getInstanceMethod(self, @selector(method));
    Method replacement = class_getInstanceMethod(self, @selector(extend_method));
    method_exchangeImplementations(original, replacement);
}

Done!

Tags: , , , ,

Leave a Comment

 

How to setup multiple url pairs in a single svn:externals

Open some file editor and write your externals like:

1
folder_name http://svn.some.link/folder_name/trunk

Save to file, for example svn.externals

and then apply the property using

1
svn propset svn:externals -F svn.externals .

Now commit:

1
 svn commit . -m "message"

And update:

1
 svn up

Tags:

Leave a Comment

 

How to add Push Notifications to your iOS application

Hi guys!

Welcome to 5 Min Guide about how to integrate Push Notifications into your application.

Push notification allows App to notify you of new messages or events without need to open the application in fact, they are similar to usual text message which appears like a popup on your screen with a sound.

This is a great way for apps to interact with us in the background, whether it is a game that notifies us of some event occurring in our game world or simple mail application that is beeping when a new message appears in our inbox.

As you know, Push Notifications require server side (3rd party server), e.g. for storing device tokens and for sending push notifications:

Some people still have problems with this – they  think that they should develop this server by themself, lots of hard work, time, money, etc.

But stop! We live in the mobile era! All this hard work is already done by another people. All you need – just use ready made products.  Do not reinvent the wheel!

And, one such product is QuickBlox. QuickBlox is a cloud hosted platform to simplify your mobile app backend development. It has lots of Great Features for any platform such Push Notifications, Location, Content, Ratings features, Social integration, Chat and lots of other mobile killer features!

Today we are going to talk about how to integrate one of these great feature to your iOS mobile application – Push Notifications, provided by QuickBlox Messages module. So, let’s start!

[Read more...]

Tags: , , , ,

Leave a Comment

 

Getting symbolicate stack call in logs

In last version of Xcode we can’t see full crash log.

For resolving this issue we can use next solution:
1. add function to your main class

1
2
3
4
5
void uncaughtExceptionHandler(NSException *exception) {
    NSLog(@"CRASH: %@", exception);
    NSLog(@"Stack Trace: %@", [exception callStackSymbols]);
    // Internal error reporting
}

2. And last thing

1
2
3
4
5
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{  
    NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);
    // Normal launch stuff
}

Or you can use commands

if you use GDB

1
(gdb) info line *0x2658

or

1
(gdb) bt

And One more Beautiful solution

1. Open the breakpoint navigation in XCode 4 (This looks like a rectangle with a point on the right side)
2. Press the ‘+’ button at the bottom left and add an ‘Exception Breakpoint’. Ensure you break ‘On Throw’ for ‘All’ exceptions.

Now you should get a full backtrace immediately prior to this exception occurring. This should allow you to at least zero in on where this exception is being thrown.

And one tip for LLDB:

source discussion on stackoverflow one more source

Tags: , ,

Leave a Comment

 

Subclass of UITextView with syntax highlighting for iOS 5.0 not finished (just sample)

With new iOS 6.0 everyone junior iOS developer can do code editor application with syntax highlighting. Because UITextView has attribute attributedText, which has enough parameters and functionality for it.

So, I want to say, my old project does not have sense. :)

The last build shared on git hub and everyone can modify it and try to finish, because it still not completed. Still has a problem with word wrap.

Maybe someone will get something new for self. Because this project used CoreText and CoreGraphics framework.

Enjoy!

Tags: , , , , , , ,

Leave a Comment

 

Facebook compose sheet view like in iOS 6 for iOS 4 and above


Project based on DETweetComposeViewController

Facebook connection with Facebook SDK 3.0.x (last at 2 september 2012)

What is it?
DEFacebookComposeViewController is an iOS 4 compatible composer view for posting picture and message on user wall.
Looks like the Facebook Sheet in iOS 6.

How to use:
1. download and setup Facebook sdk https://developers.facebook.com/ios/

2. register your app on http://developers.facebook.com

3. replace appID in plist file. FacebookAppID and in CFBundleURLTypes

4. #import “DEFacebookComposeViewController.h”

5. use this code for posting

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 DEFacebookComposeViewControllerCompletionHandler completionHandler = ^(DEFacebookComposeViewControllerResult result) {
        switch (result) {
            case DEFacebookComposeViewControllerResultCancelled:
                NSLog(@"Facebook Result: Cancelled");
                break;
            case DEFacebookComposeViewControllerResultDone:
                NSLog(@"Facebook Result: Sent");
                break;
        }
       
        [self dismissModalViewControllerAnimated:YES];
    };
   
    DEFacebookComposeViewController *facebookViewComposer = [[DEFacebookComposeViewController alloc] init];
    self.modalPresentationStyle = UIModalPresentationCurrentContext;
    [facebookViewComposer setInitialText:@"Look on this"];
    [facebookViewComposer addImage:[UIImage imageNamed:@"1.jpg"]];
    facebookViewComposer.completionHandler = completionHandler;
    [self presentViewController:facebookViewComposer animated:YES completion:^{ }];

Tags: , , , , , ,

55 comments

 

Custom UINavigationBar

Create image for navigation background – portrait
UIImage *NavigationPortraitBackground = [[UIImage imageNamed: @"navigationbarPortrait.png"]
resizableImageWithCapInsets: UIEdgeInsetsMake(0, 0, 0, 0)];

Create image for navigation background – landscape
UIImage *NavigationLandscapeBackground = [[UIImage imageNamed: @"navigationbarLandscape.png"]
resizableImageWithCapInsets: UIEdgeInsetsMake(0, 0, 0, 0)];

Set the background image all UINavigationBars
[[UINavigationBar appearance] setBackgroundImage: NavigationPortraitBackground
forBarMetrics: UIBarMetricsDefault];
[[UINavigationBar appearance] setBackgroundImage: NavigationLandscapeBackground
forBarMetrics: UIBarMetricsLandscapePhone];

Set attributes for buttons and title
NSMutableDictionary *attributes = [NSMutableDictionary dictionary];

[attributes setValue: [UIColor colorWithRed: 0.96f green:0.91f blue:0.64f alpha:1.00f] forKey: UITextAttributeTextColor];
[attributes setValue: [UIColor clearColor] forKey: UITextAttributeTextShadowColor];
[attributes setValue: [NSValue valueWithUIOffset: UIOffsetMake(0.0, 0.0)] forKey: UITextAttributeTextShadowOffset];
[[UIBarButtonItem appearance] setTitleTextAttributes: attributes forState: UIControlStateNormal];

[[UINavigationBar appearance] setTitleTextAttributes: attributes];

Tags: , , ,

Leave a Comment

 

How to convert a number to the cash equivalent

NSNumberFormatter* moneyFormatter = [[[NSNumberFormatter alloc] init] autorelease];

[moneyFormatter setNumberStyle: NSNumberFormatterCurrencyStyle];

NSString* moneyString = [moneyFormatter stringFromNumber: [NSNumber numberWithInt: 1000]];

Result: $1,000.00

Tags:

Leave a Comment

 

Page 1 of 2212345...1020...Last »