iphone

How to detect shake on the iPhone using Cocos2D?

I know how to do shake for the iPhone has been asked a million times on here, but I can't seem to find anything useful regarding the accelerometer with Cocos2D. Everything i have found involves using views and I don't think i am using any views in Cocos2D, if I am they are hidden from me I think. I want to be able to tell when any sort o...

iphone iAd question?

My application got approved yesterday. before they start reviewing test ads were showing up on my app (device), but as soon as they start reviewing ads stopped showing on the device. My app is finally approved and iAd is enabled, but i haven't seen a single ad since yesterday. Does it take some time after app is proved until my app star...

how to declare static variable

when i creating static int variable; is giving error like expected specifier qualifier ...

UIView removeFromSuperview

The removeFromSuperview method actually pulls off the image very quickly, is there a way to remove it in a animated fashion. thanks ...

How can i put the image in the section of table in the titleForHeaderInSection method ?

hi all i have so confused to make an image in the table's header section , and i have make put the image in the cell of table but i cannot understand how to make put image in the section part of table . here is my code of that method .. (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { if (s...

Adding new iPhone UDIDs to provision profile without an apple dev account

Hello, I'm part of the design (I've had experience with python, php, jquery, and java, but never ObjC) team for our application and was handed off some of the developer responsibilities with our iPhone developer went on his vacation. From the developer, I have the project source, his p12 private key, and the mobileprovision file. Alrea...

How to replicate the Scale Up Animation when an app starts regularly (push app icon on HomeScreen) on an iPhone

Hi, i want to replicate the animation when an app starts on iPhone. There is the first view scaling up from 50 % to 100% i think. later I want to use this as a transition between 2 views. Any ideas how to replicate, or is there a ready to use solution from apple in the sdk? Thank you very much :) ...

How would you store the data that represents the current list of Alarms in the iPhone Clock app?

I'm diving into iOS development and I have a few questions about the iPhone Clock app. When the user adds a new Alarm, what's the best way to store it? Using a simple plist? Using Core Data? If you look at the Alarm tab in the Clock app, you'll notice it only shows one table cell for each Alarm that exists. How can I achieve this...

What's the best common format for an eBook like text to share with most of the mobile phone types

There is a description about a product or event that people would like to share among them. This can be a simple text or rich text too. They are looking into which format is the best for this purpose. They would like to see compatible with as many phones as possible. We are talking about phones that have Bluetooth. Also the text is lon...

how to write setter to assign variable to an another variable

i want to assign a content of one variable to another ...

Is iPhone Proximity detection possible with Bluetooth? But only to obtain the MAC address of the device

I need to know the MAC address or bluetooth device name of other devices near an iPhone. is this possible with the regular API? ...

\n not working in UIlabel

Hi guys, I've seen similar questions here, but still can figure out why it's not working. How to add line break (in other words add new paragraph) in multiline UIlabel? I have a label with a lot of text, lbl.numberOfLines = 0; lbl.sizeToFit; but I'm still getting something like this: "Some text here\nAnd here I want new line" Thank...

iPhone Programming - How do I programatically make a view that requires two delegates?

Here is my dilemma. I would like to have a text box and a button. The user types in text and then presses the button. Once the button is pressed, a text message window (using MFMessageComposeViewController) comes up. I don't know how to set this up. The problem is that the TextBox will require a delegate (UITextFieldDelegate) and the MFM...

How do I use the current date to pull data to a label?

I'm trying to let the 'date' populate data to a label. Example: a work out schedule suppose today is August 5, so the label might read "do 20 pullups" and then on August 6, the same label might read "do 30 pushups". doesn't matter if the data is coming from an SQLite database or simple array.. I just can't figure out how to get the da...

How would I authenticate and make requests from an iPhone app to a Django backend to get around CSRF?

Hi, I'm working with an iPhone developer who does not have any Django experience, and I am relatively new to Django. I've built an existing Django app with a web interface that allows a user to log in and add books from our database to his personal library. We are trying to build an iPhone application that allows a user to authenticate ...

UITableViewCell problem with ghost subview when performing reloadData

I have added a custom UILabel to the contentView of my cell, depending on the state of the app, it turns bold or regular weight. For some reason when I do [tableView reloadData] to make it regular weight again, the bold version of the label remains visible, like this: See the pesky bit from the bold "7" still visible? It's like that f...

Send Crash Reports from within App

The FourSquare iPhone app seems to be doing it already: http://screencast.com/t/NjRkNmIwNWQ How is this achieved? This SO question pointed out CrashReporter.framework, but isn't this the kind of 3rd party framework Apple doesn't allow in the App Store? ...

How to add a listener to an MFMessageComposeViewController?

I am trying to send an SMS on an iPhone using MFMessageComposeVieController and I want to add a listener that recognizes when the SMS is sent (in other words, when the user presses "Send"). What is the syntax for this? For example, I know that with a textField, an example of a listener would be: [textField addTarget:self action:@select...

App crashes on iPhone 4?

This code causes my app to crash on an iPhone 4 and on the simulator but works perfectly fine on a 3GS. Any ideas why this might be? -(IBAction)startButtonClicked{ GameViewController *screen = [[GameViewController alloc] initWithNibName:nil bundle:nil]; screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; [self presen...

Memory issues with cocoa touch

First let me start off by saying I do not believe I am leaking, but I could be wrong. My issue is that at after my app is done loading I have about 10 - 20 mb of Live bytes according to object alloc, which I am fine with. However, according to activity monitor my process allocation is about 70 - 80 mb, which needless to say is a bit high...