iphone

A question about PSChildPaneSpecifier [iPhone SDK]

Hi , i am using PSChildPaneSpecifier on Setting bundle to show Acknowledgements about my application on setting bundle ,so how can handle my plist file to show many texts ? like iwork apps Acknowledgements thank you i mean something like this : ...

What can I do if two detached threads overlap each other? queue

Hi all, I'm not very 'up' on multi-threading, but I've been using detachNewThreadSelector in a couple of places to access data in a database. Unfortunately, on slower devices the first request may still be happening when I call the second... Which naturally causes a crash because both are calling the same method (which is obviously not ...

iPhone: is there a way to close an iAd bar?

I'm trying to add iAd to my app right now. I have it instantiated in my appDelegate, and would like to have a close button to allow the user to close Ad at any time. How should I go about doing this? ...

How do you stop autorotate when a modal view is active?

My application crashes if I attempt to rotate the iPad when a modal view is present. How do you stop autorotation while modal views are present or better yet how do you make it so that modal view rotates along with everything else (when the application crashes everything rotates but the modal view)? Many thanks! ...

Help needed with UIImage manipulation

Hi All, I have two UIImage objects as follow: image1: image2: I wish to combine the two images via code so I can get the following image: My graphics skills in iPhone are really poor... so any sample code will be greatly appreciated. Thanks! Josh ...

Follow Up on Twitter using iPhone

Can User follow up on twitter using iphone application. I have done the functionality of sending tweet to twitter account. But now I have to do the follow up on twitter functionality. I have an iphone application. I need to do the follow up on twitter functionality using the application in the info page. In which if user clicks on follo...

Make can't do this harmless command

I am using make on linux. I downloaded the GCC source code from svn checkout svn://gcc.gnu.org/svn/gcc/trunk and I got gcc version 4.6.0. I then typed in: ./configure --build=x86_64-fedora-linux-gnu --target=arm-apple-darwin --with-ecj-jar I'm running fedora 12 linux. I typed in --build because otherwise it configures it under x86_64-unk...

Why is UISwitch only visible if I rename the class?

Hello everyone, I had a class called OptionsTableViewController which inherited UITableViewController. I changed the superclass to UIViewController implementing the UITableViewDelegate and UITableViewDataSource protocols, because I needed the tableView to be in a specific position. Now some table cells have a UISwitch as accessoryView....

Method For AdWhirl To Tell My App When An Ad Is Clicked

Hi, I'm starting to use adwhirl to display some ads in an app that I have. Previously I was using just iAd and I was using the bannerViewActionShouldBegin:willLeaveApplication: to tell when the user clicked on the banner so I could do a little bit of custom logic. I haven't been able to find a way using adwhirl to get a notification tha...

UITableViewCell showing indexpath rows out of order

Hi All Odd question, I am creating a UITableView, setting 8 rows of data. Simply, I'm just returning the indexpath row to try and figure out what is wrong, but ultimately, any rows that are off screen seem to load in a strange order. For example, rows 0,1,2,3,4,5 all appear ok on first load, but then 6 & 7 are off screen. When I scroll...

How can I store the song the user chose in my iPhone app and later retrieve it and play it?

Hello. I'm diving into iOS development and have been slowly building my own alarm clock app to learn how to develop on the platform. I want my alarm clock to allow me to display a list of songs on my iOS device, choose only one, and have it play when the alarm fires. I've figured out how to use the MPMediaPicker to display the list of...

iPhone: Rotating a drawing without rotating the view within which it is drawn

Anyone who has gone through the Stanford CS193P class on iTunes will recognize this from Assignment 3 (HelloPoly). For those not familiar: I have a custom view called polyView, an instance of PolygonView, a subclass of UIView. On this view, I use CGContextDrawLinearGradient to paint a color gradient over the entire rectangular view. T...

Custom "Swipeable" UIScrollView does not work properly on iPad - works fine on iPhone

I am working to make my iPhone app compatible for the iPad. The user can tap or swipe the screen to activate certain functions, and it works fine on my iPhone version. There is a UIScrollView on the page which I have subclassed to make it "swipeable," i.e. it passes up all of its touch functions to its superview as such: @implementatio...

Customizing UIPickerView component background

Hi all! What are some of the ways you can customize the UIPickerView's component background image (the dials)? ...

Is CoreText just a draw/layout Framework for text?

Hi all, Im using CoreText to display some text, creating framesetter, frames and so, and everything is fine. I can even format the text, but this all is done before I draw. Now the question that is driving me crazy: CoreText is just to render text? I cannot get any reference to CTRuns or Glyphs to highlight them? Another sub big ques...

How do I make an array of SystemSoundIDs? Using AudioToolbox framework

I'm used to creating sounds like this: NSString *explosionsoundpath = [[NSBundle mainBundle] pathForResource:@"explosion" ofType:@"caf"]; CFURLRef explosionurl = (CFURLRef ) [NSURL fileURLWithPath:explosionsoundpath]; AudioServicesCreateSystemSoundID (explosionurl, &explosion1a); AudioServicesCreateSystemSoundID (explosionurl, &explosio...

Thread 1: Program received signal: "SIGABRT"

0x90938ef6 <+0010> jae 0x90938f06 <__kill+26> The line about crashes the program and says: Thread 1: Program received signal: "SIGABRT" How do I fix it? ...

How to find iOS 4 only code in iPhone project

Hi i have a iPhone Project with Base SDK 4.0 and Deployment Target set to 3.0 with XCode 3.2.3. Is there an "easy" way to find out whether i use iOS 4 only API calls in my Source Code. I'm aware that i could install an old XCode to run my project against an e.g. 3.1.3 Simulator, but i hope there is a simpler way for checking this. Any...

iPad Universal Binary - problem with MessageUI.framework

Hello all, I'm in the process of turning one of my iPhone apps into a universal binary. Everything works ok accept for the MFMessageComposeViewController Class. I went the single project with two targets route. When I run the iPad Target, the compiler flags the MFMessageComposeViewController. Obviously, this was introduced in 4.0 but ...

NSFetchedResultsController and BAD_ACCESS

Hi all, I have a UITableViewController that is fed by a NSFetchedResultsController. Everything worked fine, until I added if (self.fetchedResultsController != nil) { return self.fetchedResultsController; } to the beginning of my -(NSFetchedResultsController *)fetchedResultsController { method. The error I get is: Prog...