Giter Site home page Giter Site logo

ios-5-cookbook's People

Contributors

erica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-5-cookbook's Issues

iOS-5-Cookbook Chp #4 Cube sample

Dear Concerned,
Sample code works well, bit confuse to manage below scenario

  1. How to manage if Destination and Source width is different

Thanks & Regards,
Zahur

empty directories

Are we missing any code the empty directories like c05/12-IB Tab Bar? Was this a mistake or should we be expecting something?

Thanks the book looks great so far.

Determining presence of hardware keyboard.

Thanks for the heads up on this code. I couldn't get your original code to work in all situations so I came up with the following:

    // This works when [UIDevice orientation] just returns zero
    UIDeviceOrientation     or = (UIDeviceOrientation)[[UIApplication sharedApplication] statusBarOrientation];

    if((or == UIDeviceOrientationLandscapeLeft) || (or == UIDeviceOrientationLandscapeRight)) {
        usingHardwareKeyboard = startPoint > ([constants screenShortSideDimension] - 20);
    } else {
        usingHardwareKeyboard = startPoint > ([constants screenLongSideDimension] - 20);
    }

In my case I used a 1 pixel high UIView as my accessoryView. So I'm checking to see if it's within 20 pixels of the screen size.

Recipe 5-6 does not match

When I open recipe 5-6, it does not match what is in the book at all. I don't see any reference to a slider. I am downloading the zip file for the whole book.

Thanks

Chapter 23: Code not working

I've encountered a slight glitch in trying to implement your In App Purchase code. It doesn't seem to work anymore in Xcode 4.5 (even when deployed to an iOS 5 device).

First there's a problem with the keyboard. When I touch a key on my "real" keyboard I get the following log message. I can type on the on-screen keyboard though:

2012-12-20 17:07:44.073 HelloWorld[812:1b07] Unable to load persistent store at URL 'file://localhost/Users/versluis/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite' ({
    metadata =     {
        NSPersistenceFrameworkVersion = 419;
        NSStoreModelVersionHashes =         {
            UserDictionaryEntry = ;
        };
        NSStoreModelVersionHashesVersion = 3;
        NSStoreModelVersionIdentifiers =         (
            ""
        );
        NSStoreType = SQLite;
        NSStoreUUID = "720C82C2-781C-4371-8952-3980B42FF342";
        "_NSAutoVacuumLevel" = 2;
    };
    reason = "The model used to open the store is incompatible with the one used to create the store";
})
2012-12-20 17:07:44.076 HelloWorld[812:1b07] Unable to load persistent store at URL 'file://localhost/Users/versluis/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite' ({
    metadata =     {
        NSPersistenceFrameworkVersion = 419;
        NSStoreModelVersionHashes =         {
            UserDictionaryEntry = ;
        };
        NSStoreModelVersionHashesVersion = 3;
        NSStoreModelVersionIdentifiers =         (
            ""
        );
        NSStoreType = SQLite;
        NSStoreUUID = "720C82C2-781C-4371-8952-3980B42FF342";
        "_NSAutoVacuumLevel" = 2;
    };
    reason = "The model used to open the store is incompatible with the one used to create the store";
})
2012-12-20 17:07:44.078 HelloWorld[812:1b07] Unable to load persistent store at URL 'file://localhost/Users/versluis/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite' ({
    metadata =     {
        NSPersistenceFrameworkVersion = 419;
        NSStoreModelVersionHashes =         {
            UserDictionaryEntry = ;
        };
        NSStoreModelVersionHashesVersion = 3;
        NSStoreModelVersionIdentifiers =         (
            ""
        );
        NSStoreType = SQLite;
        NSStoreUUID = "720C82C2-781C-4371-8952-3980B42FF342";
        "_NSAutoVacuumLevel" = 2;
    };
    reason = "The model used to open the store is incompatible with the one used to create the store";
})
2012-12-20 17:07:44.080 HelloWorld[812:1b07] Unable to load persistent store at URL 'file://localhost/Users/versluis/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite' ({
    metadata =     {
        NSPersistenceFrameworkVersion = 419;
        NSStoreModelVersionHashes =         {
            UserDictionaryEntry = ;
        };
        NSStoreModelVersionHashesVersion = 3;
        NSStoreModelVersionIdentifiers =         (
            ""
        );
        NSStoreType = SQLite;
        NSStoreUUID = "720C82C2-781C-4371-8952-3980B42FF342";
        "_NSAutoVacuumLevel" = 2;
    };
    reason = "The model used to open the store is incompatible with the one used to create the store";
})
2012-12-20 17:07:44.081 HelloWorld[812:1b07] Unable to load persistent store at URL 'file://localhost/Users/versluis/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite' ({
    metadata =     {
        NSPersistenceFrameworkVersion = 419;
        NSStoreModelVersionHashes =         {
            UserDictionaryEntry = ;
        };
        NSStoreModelVersionHashesVersion = 3;
        NSStoreModelVersionIdentifiers =         (
            ""
        );
        NSStoreType = SQLite;
        NSStoreUUID = "720C82C2-781C-4371-8952-3980B42FF342";
        "_NSAutoVacuumLevel" = 2;
    };
    reason = "The model used to open the store is incompatible with the one used to create the store";
})

Next, long-pressing the cow (which is very cute) brings up the Buy a Baa button, but no purchase is performed. It only ever brings up the "adults" audio sample, accompanied by this log entry:

2012-12-20 17:08:31.233 HelloWorld[812:c07] Error: Could not find matching products
2012-12-20 17:08:31.233 HelloWorld[812:c07] Request finished

Just thought I'd let you know for future releases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.