iphone

Opinion/review about iphone development course by About Objects. Is is worth?

I am thinking about attending this 10 day course by About Objects Inc. http://www.aboutobjects.com/training/iphone_development/iphone_and_ipad_development_super_bundle.html I have never programmed before and my development skills end with HTML/CSS (if you could call that development). I was wondering if anyone has attended this course...

2D Array of UIButtons Isn't Working (Objective-C/iPhone development)

I've made a bunch of UIButtons in a grid and I want to be able to iterate over them easily so I've put them in an NSMutableArray. Like so: // in .h UIButton* button1; UIButton* button2; ... UIButton* button9; UIButton* myButtons[3][3]; // in init function in app myButtons[0][0] = button1; myButtons[0][1] = button2; ... myButtons[2]...

iphone table view scrolls to bottom when launch

I am following Chapter 5 in O'Reilly Learning iPhone Programming. When I launch the app in Xcode, the list will scroll straight away to the bottom. When I try to drag the tableview upwards, it will go back to the last row when I release my mouse. Unfortunately I am unable to post the codes since it has many sections. Anyone has a clu...

dataWithContentsOfURL is painfully slow

I have a SQLite dbase that has over 100 URLs for images. The images are NOT displayed in the tableview, however when a row in the tableview is selected, the appropriate image is displayed in the 'pushed' view controller. The problem is whenever a row is selected, the app freezes for a time until the view controller is finally pushed. I ...

Trouble with sprites (loading and removing)-cocos2d iphone

Basically i have an array of Sprites to be loaded and removed one by one in an order. I have a list of animal names in an array like const NSString *Animal1[30] = {@"Lion .png",@"Zebra .png",........... To load a sprite i use the following code image[i]= [Sprite spriteWithFile: [NSString stringWithFormat:@"%@",Animal1[i]]]; image[i]...

iPhone video capture (best method)

Hi all, I am curious about the new APIs for iPhone iOS: AVCapture... Does this include a documented way to grab a screenshot of the camera preview? The doc seems a bit confusing to me, and since it is out of NDA now, I thought I would post my question here. Many thanks, Brett ...

Putting UIView with alpha 1 on top of UIView with alpha 0.5

Hello everyone, I'm trying to have a modular uiview that will be placed on top of another view. The modular view has an alpha value of 0.5, and appears in the middle of the main view. Now, I would like for text to be rendered on that modular UIView. However, whenever I: [modularView addSubview:text] it looks all hazy. How can I m...

How to resolve unrecognized selector sent to class?

My Question is similar to This SO question, but with the main difference being that I'm using class methods. Some code: OpenFeint+private.h @interface OpenFeint (Private) // ... + (void) createSharedInstance; OpenFeint+private.mm + (void) createSharedInstance { //... } OpenFeint.mm + (void) initializeWithProductKey:(NSString*...

How to create an authentication token for a message sent to the server ?

Hey Guys, I am creating an iphone app in which I have to POST some data to my PHP server. For example I do a HTTP request like this: http:example.com/append.php?data1=X&data2=Y&token=Z X and Y are my known data and I want to calculate Z with some algorithm that takes X and Y are inputs and produce Z. So when I receive X,Y,Z in the s...

Enable IPhone Intellisense without Pressing Escape Key

Is there anyway to just turn on the intellisense support in XCode without having to press the escape key? ...

CALayer moves instantly when trying to animate?

The code below handles a stack of CALayers. Every time a new layer is pushed onto the stack the function is locked, and all existing layers and moved down on the screen to make room for the new layer. Once the last layer is done animating the function is unlocked again so that new layers can be pushed. My problem is that every time this...

Loading a xib (nib) file twice to obtain two different instances of a view

Hi, I have a UIViewController* compViewController which switches between two copies of the same view (with small differences between the two views). Currently, both views come form the same xib file. The xib file contains two almost identical copies of the same view hierarchy. One of the copies, "the main one" is connected to the vie...

How to target specific arch during iphone universal(arm6/arm7) build

Im trying to define different ld and c flags for different arch. im using this.. OTHER_CFLAGS[sdk=iphoneos*][arch=arm6] = blabla and whatever is set here doesnt make it into the build.. even setting as arm7 doesnt make a difference. Tested on both arm6 and arm7 devices. BTW im using .xcconfigs for my project. ...

How can I use an NSArray as a global constant?

I'm using a set of Constant.m files, one per target, to define specific things for each target. For example: // Constants.h extern NSString * const kDatabaseFileName; //Constants.m NSString * const kDatabaseFileName = @"target_one.sqlite"; I'd also like to define an NSArray for each of my targets: NSArray * const kLabelNames = [[NSAr...

iphone ios4 stats

Hello Does anybody know where can stats for ios be found? Percents of use for iOS4, iOS3 including per device/os version e.g. how many users have ios4 on iphone 3g, 3gs thank you ...

iPhone app got rejected: it provides to the user potentially inaccurate diagnostic functionality for iPhone OS devices.

We've reviewed XXX and determined that we cannot post this version of your iPhone application to the App Store because it provides to the user potentially inaccurate diagnostic functionality for iPhone OS devices. There is currently no publicly available infrastructure to support diagnostic analysis. This may result in your app reporti...

How to put a UILabel ontop of a UIToolbar?

I have a UILabel that shows a character count as the user types into a textfield. Currently it is sitting behind a translucent UIToolbar. I would like the UILabel to be ontop of the UIToolbar. How can I accomplish this? ...

Custom UITableViewCell with 3 labels

Hi guys, I have a custom UITableViewCell and in it I have 2 labels. The 2 labels in the custom cell have name and location. What I need to be able to do is, select a row and use the text in the name label of the row as the title for the next viewController. Any ideas on how I could do this? Thanks. ...

ipad scrollview causing malloc of 40x the image's size

Bear with me as I am new to obj-c but I have a UIScrollView and a segmented button that switches between 2 images that are presented in the scrollview. Each image is large and roughly 500Kb, but they are each causing allocations of 20+ MB and crashing my app. - (void)viewDidLoad { [bvpiscrollview setContentSize:CGSizeMake(768, 248...

Syncronization with itunes

Possible Duplicate: Alert a user to rate an application from iTunes hello friends, how can i access itunes from my iphone application and give review to this application ...