iphone

Formatted Text in UIScrollview

Hi all, What i Need to do for our project is to Display several UIScrollViews in a View and weithin the scrollView a Headline and a Short Text. I Know how to add a Label to the UIscrollview, but how Gould i handle the Case that the Headline-Label is too Long and wraps to a Second Line. ...

iphone app communication without using webservices

I want to send some Text plus a image from one iphone application to other iphone app but restriction is I should not use a web server in between communication,Is there any way to fulfill it ? Details: There are two independent devices and could be far enough say out of network. My requirement one app adds some text with a image and ...

NSCFArray length]: error, array regex

StringReply = [[NSString alloc] initWithData:dataReply encoding:NSUTF8StringEncoding]; //Regex Out Artist Name //NSString *regEx = ; NSArray *iTunesAristName = [stringReply componentsMatchedByRegex: @"(?<=artistname\":\")([^<]+)(?=\")"]; if ([iTunesAristName isEqual:@""]) { NSLog(@"So...

NSTimer not invalidating or is refiring

so here is the problem i have, i created two NSTimer objects and they are fired when i button is pressed. then the user has 20 seconds to press another button which forces an alert to popup where they enter a validation code, and when they press the confirm button on the alert it is supposed to stop the timer. what is happening is that ...

How to check if ipod has music files.

Hi All, I am trying to have my app play music from ipod using MPMusicPlayerController but there are devices which do not have music in there ipod library. Can anyone tell me if there is a way to check whether there is music in the ipod library or not before initializing the ipod player. Thanks in advance. ...

regex to get string within 2 strings

"artistName":"Travie McCoy", "collectionName":"Billionaire (feat. Bruno Mars) - Single", "trackName":"Billionaire (feat. Bruno Mars)", i wish to get the artist name so Travie McCoy from within that code using regex, please not i am using regexkitlite for the iphone sdk if this changes things. Thanks ...

Why does this leak memory?

UPDATED I have this method: -(NSDate*)roundTo15:(NSDate*)dateToRound { int intervalInMinute = 15; // Create a NSDate object and a NSDateComponets object for us to use NSDateComponents *dateComponents = [[NSCalendar currentCalendar] components:NSMinuteCalendarUnit fromDate:dateToRound]; // Extract the number of minutes ...

Reloading tableView when subclassed causing crash

Hey guys! I have some problems reloading my tableView. I have subclasses my tableView, with a class called RadioTable. I have also subclasses my TableViewCells, but thats not important here. I need to point out that i'm pretty new, and built my subclass from some tutorials and stuff. First of all, here is the error message i'm getting ...

iPhone next UITextField

I have an application with a UITableView with grouped style. On each of the cells, there is a UILabel with a description, and a UITextField for the user to enter data. We implemented a toolbar on top of the keyboard, with next and prev buttons (similar to what MobileSafari provides when filling forms). In order to give focus to the next...

How do I get UITextView to scroll properly when the keyboard is visible

I have a UITextView sitting on top of a UIView, and if I tap on it to open it for editing, then the keyboard is blocking the bottom of the view and I can not see it even though I can write in this area. Can I tell the UITextView to have a different scroll area or what is the solution? ...

Dropdown menu within a UITableView

Hello, I'm looking to build or incorporate a dropdown menu system into an app I'm building however I need some help figureing out how it's accomplished. From my best guess I'd have to use the UIActionSheet, however it doesn't seem all that customizable. The best example I've come accross is within the AppShopper iOS application: Drop ...

distorted UIView view on load

I have a UIScrollView that contains a UIView onto which I am drawing a rather complex graphic using CGPaths. After the view finishes loading the graphic is distorted in that it is elongated horizontally and vertically. If I redraw it, it looks normal. Any ideas on what is causing this and how to fix it? ...

View Behind View rolldown effect on iOS (Like folders on home screen)

What would be the best way to accomplish the home screen folder roll-open effect with views in Objective C? ...

How do you use OpenGLES to open an image file, do some work, then save the image file, in the background (offline)?

So I'd like to create a class that accepts a CGImage from an image file I just read from disk, does work on that image texture (color transformations) then returns the texture as a CGImage and does all this in the background w/out drawing to screen. I've looked at Apple's demo app on GLImageProcessing but it draws all the processing to ...

Does apple apply the app icon gloss effect and corner rounding on every icon?

The iTunes Connect Developer Guide says that the developer must provide a whole bunch of different icon sizes. But I only know from the "normal" app icons (57x57, 114x114) that the device applies the gloss effect and corner rounding automatically. But how about those other icons? How about the 512x512 iTunesArtwork.png icon? Are the eff...

iPhone, where should I put my control populate pushed view, viewDidLoad called once ?

I've got a UITableView with some records shown, once a row is selected another screen appears allowing the user to edit the record. They then click Done or Cancel on the navigation bar and return to the UITableView screen. Heres my code in the didSelectRowAtIndexPath if (self.transactionDetailViewController == nil ) { TransactionD...

Cocos2d iPhone: Rotate Sprite using Accelerometer

Hi, I'm trying to rotate a sprite using the accelerometer. when I tilt right, I want him to rotate slightly to the right, and when I tilt left, I want him to rotate slightly to the left... Thanks in advance, Reed ...

Is it safe to use the "hash" method to track NSURLConnections in memory?

My question is related to this discussion: http://www.cocoabuilder.com/archive/cocoa/202211-how-to-get-nsurl-form-nsurlconnection.html I am sending several NSURLConnections to transmit data and need to be able to tell which specific connection failed or succeeded. There are NSURLDelegate methods (didFailWithError, etc) which return the ...

iPhone: Update Localizable.strings files using genstrings?

I have generated my strings file correctly using genstrings. I have changed the localized strings for my different languages. Now, I have added a few more NSLocalizedString() occurrences and I want to generate those into all of my localized strings files. But, running genstrings again does not seem to update my strings files. Am I ...

XCode - touchBegan - Recent Touches/New Touches

Hey all, I have been using touches began to track as many as 8 touches, and each triggers an event. These touches can occur at the same time, or staggered. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"Touch Began"); NSSet *allTouches = [event allTouches]; for (int i=0; i<allTouches.count; i++)...