iphone

Best practices for handling touches to a CCSprite with cocos2d

Hey all. I just started looking into the cocos2d library. I've heard that it's an easy library to get into if you're used to programming in ActionScript and I've found that a lot of the concepts are indeed similar. I started looking through sample projects (the sample games linked here were especially helpful) and I saw that handling of...

iPhone/Obj-C - Archiving object causes lag

Hi I have a table view, and when I delete a cell I am removing an item from an NSMutableArray, archiving that array, and removing the cell. However, when I do this, it is causing the delete button to lag after I click it. Is there any way to fix this? // Override to support editing the table view. - (void)tableView:(UITableView *)tabl...

iPhone OpenGL ES

Hello, Since I'm not familiar with iPhone development I'd like to know whether it is possible to use OpenGL ES1.0 on the iPhone 3gs rather than 2.0. I'd like to share a code base across different mobile platforms and not having to deal with the programmable pipeline from OGLES 2.0 could speed up an initial build. Update -- I'm not us...

How can I add a UIImage to a grouped UITableView?

I have a grouped UITableView that has 3 sections. I would like to show a UIImage with some text next to it (not a cell), but I am not sure how I can go about doing that? The image and text need to match the background of the pinstripes. ...

MKMapView memory usage grows out of control with setRegion: calls

Hi, I have a single MKMapView instance that I have programmatically added to a UIView. As part of the UI, the user can cycle through a list of addresses and the map view is updated to show the correct map for each address as the user goes through them. I create the map view once, and simply change what it displays with setRegion:animate...

Is it possible to have other UIControls on a UITableView?

I have a UITableView with 3 sections inside of a UIViewController. Is it possible to have other controls above the UITableView for example a UISlider or a UIImage? If so, how can this be accomplished? Note: These controls should not be in a UITableViewCell, they should be part of the view. ...

Publishing similar apps in AppStore

Hello guys, I have some questions that I think some one here can help me ... I have published 5 apps in AppStore that brings news to the users, for different countries. One app per country, because no one want's to read the news of other countrys. Now, I have submitted 3 more apps to publish and Apple reject it, because they say that I ...

'object' undeclared <first use in this function>

I am using Winchain to develop on my Windows 7 machine. Here is my code: iPhoneTest.h #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface iPhoneTest : UIApplication { UITextView *textview; UIView *mainView; } @end iPhoneTest.m #import "iPhoneTest.h" #import <UIKit/UIKit.h> #import <Foundation/Foundation.h>...

Looking for some help working with premultiplied alpha

I am trying to update a source image with the contents of multiple destination images. From what I can tell using premultiplied alpha is the way to go with this, but I think I am doing something wrong (function below). the image I am starting with is initialized with all ARGB values set to 0. When I run the function once the resulting ...

Duplicate Method Names - Objective-c

Why does this compile with out any errors or warnings? @interface ObjectTest : NSObject { } -(void)iAmADoubleMethod; -(void)iAmADoubleMethod; @end @implementation ObjectTest -(void)iAmADoubleMethod { NSLog(@"IAmADoubleMethod"); } @end I came across this in a project I am working on. I come from a C++ background, so I figure I wo...

Push notification not working for the production environment

I have spent a whole day on this already but still didn't go anywhere. When I run my app in the development mode, I can get the push messages I send to myself thru PushMeBaby without a problem. However, when I try to test it in the production environment, I cannot get any push. I re-generated all the certificates and provisioning profil...

Is there a way to get email content from iPhone's Mail application

Possible Duplicate: Can iPhone API access Mail/Messages/etc.? Is there an API to access iPhone's native Mail app and read email content and open/reply to emails? Thanks ...

How to make UILabel look etched like section header in a UITableView

I have a UITableView with a view in the header. This view has the pinstripe background and contains a UILabel. I want the UILabel text to look like the text of a section header. How can I achieve this? ...

IPhone OAuth Tutorial?

Hi, Is there any tutorial out there showing how to use OAuth on IPhone? Basically all of the tutorials are for twitter, i need something which work for any website, which has OAuth and give general view how to make it work on IPhone. Thanks ...

rotating circle with swipe question

Okay so I'm making something that basically works as a knob, but only half on the screen -- so I just need horizontal swipes to cause it to rotate. I have it nearly all sorted with one exception: if you change direction of your swipe in mid-swipe, the rotation doesn't change direction. I even can see the problem, but not sure what to do ...

UITextField stopping shake event?

For those of you who work graphically, here is a diagram of the view hierarchy: Root View -> UINavigationController -> UITableView -> Edit View -> Problem UITextfield Basically, - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event; gets called in my Root View when the device shakes. When a user taps on the "edit" ico...

Where should I put code that is supposed to fire AFTER the view has loaded?

I’m writing an objective-c program that does some calculations based on time and will eventually updates UILabels each second. To explain the concept here’s some simplified code, which I’ve placed into the viewDidLoad of the class that handles the view. - (void)viewDidLoad { [super viewDidLoad]; // how do i make this stuff h...

iPhone UIImage upload to web service

Hi all, I worked on this for several hours today and I'm pretty close to a solution but clearly need some help from someone who's pulled this off. I'm trying to post an image to a web service from the iPhone. I'll post the code first then explain everything I've tried: NSData *imageData = UIImageJPEGRepresentation(barCodePic, .9); NSS...

iPhone WebApp Question

I have this code- /** Save the web view as a screenshot. Currently only supports saving to the photo library. / - (void)saveScreenshot:(NSArray)arguments withDict:(NSDictionary*)options { CGRect screenRect = [[UIScreen mainScreen] bounds]; CGRect imageRect = CGRectMake(0, 0, CGRectGetWidth(screenRect), CGRectGetHeight(screenRec...

retrieve my wall post in my native i phone application

hello all i want to retrieve my all the wall post that i have posted until now i am using this fql query from my native iphone application in order to fetch it but i think i am maiking some mistake please guide me how could i do that the following is my fql query to get wall post - (void)session:(FBSession*)session didLogin:(FBUID)uid ...