iphone

Weird anti-aliasing in custom view

I have a custom UIView which is drawn using its -[drawRect:] method. The problem is that the anti-aliasing acts very weird as black lines horizontal or vertical lines are drawn very blurry. If I disable anti-aliasing with CGContextSetAllowsAntialiasing, everything is drawn as expected. Anti-Aliasing: No Anti-Aliasing (which looks li...

How do you do an equivalent scaling call in cocos2d as this Core Animation scale?

I'm looking for something that does a similar call, but using cocos2d... the idea is to enlarge the sprite and then fade it out... Here's is a similar call in core animation: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:ANIM_NORMAL]; someView.alpha = 0.0; someView.transform = CGAffineTransformMakeScale (3.0, 3....

Audio recording using iPhone

Hi All, I am currently using AVAudioRecorder file, to record an audio. But in between i need to insert an another audio into that recoded audio file. How can i make it possible? If so please give me a suggestion ! Any help would be greatly appreciated. Suresh ...

non lazy ptr linking error - the solution

I have received many errors while trying to Build & Run my iphone app using the xcode. All the errors stated "non lazy ptr" for the used variables in the code. The solution for me (and for all of you) is to look for the correct framework to be used according to the Simulator and Device versions the code will be running on. At first i hav...

iphone singleton instance in the LocateMe sample code

Can anyone explain why a singleton instance of the MyCLController class is used in the sample iphone app LocateMe found here as well as the overriding of retain, retainCount, release, and autorelease? Any help would be very much appreciated!! ...

Programmatically pasting into an iPhone UITextView

I have an iPhone app with a UITextView. I'd like to be able to paste the clipboard contents into it without showing the UIMenuController. I tried calling the paste: method on the UITextView, and on the first responder, but neither of those things worked. I was able to implement this by writing a bunch of code to read text from the clip...

Why won't my iPhone app debug from XCode?

After having a hell of a time trying to get my certificate to work, I finally deployed the app to my iTouch. However, if I try to run it via Build and Go, the app just displays with a blank screen. None of the breakspoints are hit (yes, I am in Debug mode). If I disconnect XCode and just run the app from the device by tapping it, it w...

UIViewAnimationTransitionCurlUp - how - iphone

I want to animate a view like UIViewAnimationTransitionCurlUp. I don't know the exact way. plz help me. Thanks in advance. ...

iPhone - dealloc subview UIViewController when removeFromSuperview

I have several buttons on my main UIViewController (main menu) that creates and adds a subview UIViewController on top of the main menu. When I remove the subview the memory from that controller is not released. How can I release that subviews memory instantly? Does anyone have an example? This would solve all my problems! Thanks in...

Is it possible to resize a UITableViewCell without using UITableViewDelegate?

I want to resize my table view cells from inside the cell instead of from the UITableViewDelegate. I am resizing them based on asynchronous content, so I can't size them in the delegate. I tried setting self.frame inside the cell, but the table view was really unhappy about that. Cells were overlapping and all kinds of craziness was goi...

Will Web Development Frameworks replace Native IPhone Programming?

I need help clearing up some questions regarding these several third party dev-support frameworks (e.g. ViXML, Titanium Mobile) which promise iPhone app development at lightning speed using only Javascript and XML, without knowledge of Objective-C. Questions Are there any features possible on a regular Xcode development platform that ...

mobile: html5 vs xhtml

I am building a mobile app (hybrid mobile web app but with a native shell) with most users on the iphone (some on the blackberry) and am wondering if it should be written in html5 or xhtml? Any insight would be great. ...

Drill down rss reader iphone

Hi everyone, I have made a simple rss reader. The app loads an xml atom file in an array. Now I have added categories to my atom feed, which are first loaded in the array What is the best way to add drill down functionality programmatically. Now only the categories are loaded into the array and displayed. This is the implementation c...

Modifying an iPhone animation container view before starting animation

I am adding some basic animation to a card game I'm working on. (My first iPhone app.) I am creating a custom UIView class "AnimationContainer", which flips from image1 to image2, while moving from rect1 to rect2. My ultimate intention is to have up to four of these containers doing their transitions simultaneously. The problem I'm hav...

Bad Access error when accessing a UIColor*

In my drawing routine for a custom UITableViewCell, was using the following without any problems: CGContextRef context = UIGraphicsGetCurrentContext(); UIColor* backgroundColor = [UIColor colorForHex:@"FFFEFF"]; [backgroundColor set]; CGContextFillRect(context, rect); Of course, this is quite standard except for my interface on the...

Iphone: Unable to load modal view from UITabBarController

I want to be able to present a modal view with an instance of a UIViewController. I have no problem doing this when presenting it from a standard UIViewController (the root view). I have set up a delegate to make the presenting root view close the modal view. This is according to Apple best practice. When I try to make the same root vie...

How do I detect a HTTP response, parse the xml and save to a NSString?

I've been trying to figure this out for weeks and i still get nothing. I am using the ASIHTTPRequest and ive successfully sent the data to a server and now I need to get the response XML,parse it and save the elements to each labeled NSString so I can post it to the server. Does anyone have an idea on how to do this? ...

how to create info button on uinavigationbar on iphone

I've seen many of applications that have an info button (the letter "i" with a circle around it) on the uinavigationbar. How do I add this type of button? ...

Hiding the Keyboard when losing focus on a UITextView

So I have a UITextView that I'm using to allow the user to submit some text. My problem is, I can't seem to figure out how to allow the user to 'Cancel' by tapping away from the UITextView. ...

Build Error - missing required architecture i386 in file

I'm getting this error when building my iPhone application: ld: warning: in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/System/Library /Frameworks/UIKit.framework/UIKit, missing required architecture i386 in file It goes the same for all the frameworks in my app. It's very weird since this was not happen...