iphone

Subclassing MKAnnotationView and overriding setDragState

Hi all This is about an iPhone App using MKMapKit: I created a custom MKAnnotationView for a draggable Annotation. I want to create a custom animation. I set a custom pin image and the annotation is draggable (which both is not shown here, it happens in the mapview) with the following code: - (void) movePinUpFinished { [super se...

How to connect with the SOAP web service ?

Hi friends, I am working with coneect to SOAP webservice from iphone. I cant connect with the web service. Here i had included my code. Please help me to solve the problem. NSString *soapMessage = [NSString stringWithFormat: @"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" "<SOAP-ENV:Envelope \n" "xmlns:x...

can i add an ivar (or property) to an existing class in objective-c?

I'm wondering if it's possible to add an ivar to the UIButton class? A bit like categories but not for a method(s) but for ivars. I am programmatically creating and displaying an array of UIButton's which I then all link up to a single action method using –addTarget:action:forControlEvents: for a touchup event. Now, my receiver method ...

How do I create an outlet for additional views?

Hi, I'm struggling with the basics on how to build views in Monotouch and how to tie them to C# code. I know how to create an outlet for an UIViews that are on the Main window. But how can I create an oulet for an UIView that is located on a different view? The main view has an AppDelegate class I can bind the outlets to. But there'...

How do I change the sprite shape within this open source iPhone game?

I downloaded the open source example game iSpacies and am trying to understand its design. For example, how would you go about changing the alien image into a 'V' shape and the the fighter object image into a shape like this: '^'? ...

How to auto rotate your own custom views?

I've learned that the best way to get graceful rotation is to set the auto rotation mask on the view that you want resize or move. This works fine if you're using SDK views like UILabel, but if you have your own custom view that uses the drawRect method it doesn't rotate as gracefully. In fact the only thing that happens is that it stret...

Install Xcode 3.2.4, get "Base SDK Missing"

When you update Xcode to 3.2.4, your previously working Xcode iOS project gives you the message "Base SDK Missing". Something like this: What gives? How to fix? ...

Compress this into a function?

Hi I have the following code which is really long of course, how can I compress this into a function? Then call this function with the other weekdays and lessons in the week? Currently Im just using the same code over and over just replacing the variables (which are strings). //Allocate and add objects to monday week one. monArrayA ...

Reference library cyberlink

Hello, I reference the CyberLink library inside another target in an iPhone project. But I have some bugs while compiling when I implemented a CyberLink class. those kind of errors : Undefined symbols: "_xmlParseDocument", referenced from: _cg_libxml2_parsewrapper in libCyberLink.a(cxml_parser_libxml2.o) "_xmlGetPredefinedEnt...

Drawing shadow with Quartz is slow on iPhone & iPad. Another way?

I was pretty excited when I found out just how easy it is to add shadows to my UIViews on the iPhone/iPad. Just add the framework in Xcode, add the import to the top of the file: #import <QuartzCore/QuartzCore.h> Then later: self.contentView.layer.shadowRadius = 3.0; self.contentView.layer.shadowOffset = CGSizeMake(-2.0, -3.0); self...

Displaying one graph per day, home screen style

Hi everybody! I'm working on an app that can display a graph with some data, one every day. I'll call this "dayGraph". I'd like to build an interface similar to the iPhone home screen, aka pageControl, with one dayGraph per page. (but i don't need the small dots!) I tried with the standard pageControl example from Apple, and it's work...

UIAlertView button tagging

Hey guys, Is there a way I can add a .tag to an UIAlertView button? Reason being, I'm adding a few dynamic buttons to the alert that will sometimes be in the alert and sometimes not. I figured the best way was to add a tag. Is there a better method for this? The options that will ALWAYS be in the alert are Email, Save. And the 2 option...

Is it permited to download javascript code to iPhone

Hi, I have an hybrid application, it's basically a website running from the application folder inside a UIWebview. The problem is that I was planning to update my website by downloading the whole website from internet and then replacing the old website. Today I found that Apple now provides the App Store Review Guidelines and among ot...

Open GL + Brightness of image + saving image

Hello All, In my application , I need to do brightness related operation on the image. I done with following things Getting image from photo library. Drawing that image using the Open GL. Changing the brightness of the image. -(void) DoBrightness:(float) aBrightness { [EAGLContext setCurrentContext:context]; // Clear the buffer g...

Landscape view showing when not supposed to

I just want to ask if anybody else is also having problems with this; It used to be that a tabbar app by default didn't allow landscape view unless it was enabled for all views in the app, but one could add [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didRotateFromInterfaceOrientation) name:@"UIDeviceOrient...

Want to check Apple push notification Service on my device?

Hello friends, I have created iphone application which support Apple push notification service. I also configured the server on windows which sends my device id to apple server. I gets device ID whenever I launch application. But still i wont get any notification from apple server, where notifications were also send to apple server fr...

Strange issue after upgrading to iOS 4.1 SDK

Hi all, I've upgraded the iOS SDK to the newly released 4.1 and now I have the following error while building my app: /DeveloperBeta/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h:60:23 /DeveloperBeta/Platforms/iPhoneSimulator.plat...

can you install an iphone app with an invisible icon?

Hello All, So I am working on a bundle of applications for my company for the iPad and am trying to figure out if it is possible to install an app but hide the icon. It will not need to be launched from the desktop directly. Instead, I have created a launch desktop that controls login and the launch of the actual apps via custom URL s...

How do you retrieve the latest object from Core Data?

I'm writing an application that uses a UIPickerView and is storing each change to the pickers in core data (the name of the app is Wizard Blood in the iTunes store). I've had some success so far in that my -didSelectRow method successfully adds new objects to core data via the following code: // Get context, entity, managedobject from t...

what is the normal wait time these days for iPad apps

What is the normal wait time these days for iPad apps to move from "Waiting for Review" to "In Review". Once "In Review" How long before they accepted or rejected? This is my first app submission so wondering. Submitted on 6th Sep. Still "Waiting for Review" ...