iphone

The binary you uploaded was invalid. A pre-release beta version of the SDK was used to build the application.

I am having a problem submitting my new app to the appstore. ItunesConnect gives me the error: The binary you uploaded was invalid. A pre-release beta version of the SDK was used to build the application. I haven't changed anything, I can compile to a ad-hoc certificate and that works fine. I uploaded another app yesterday and that wor...

Adding view to UIScrollView and toggling scrolling/interacting

Hi all! I have a UIScrollView in my project. I have a view controller I would like to add as a child of the UIScrollview. Would I just do that like this: [scrollView addSubview:theViewController.view]; or is there a better way? (theView is a view, not the TV show) Furthermore, I would like to be able to use a UIButton in scrollView'...

How to detect when iPhone MPMoviePlayer controls appear/disappear?

I'm trying to add custom buttons to the left and right of the standard rewind/play/forward controls in an MPMoviePlayerController view (OS 2.x and up). I've figured out how to add them to the player window, but they're always visible. Is there a way to detect when the standard controls appear and disappear? ...

iPhone: Activate UISlider and set its value to the location of the current touch programatically

Is it possible to set an UISlider as first responder and set its current value to the location of the current touch programatically? The way my app is set up I have a UIView container that takes up the whole screen. Inside the container I have another UIView offscreen at the bottom edge (I'll call this bottomBar). Inside the bottomBar ...

Objective-C - How to add objects in 2d NSMutableArrays

Hello, I have this code NSMutableArray *insideArray = [[NSMutableArray alloc] init]; NSMutableArray *outsideArray = [[NSMutableArray alloc] init]; [insideArray addObject:@"Hello 1"]; [insideArray addObject:@"Hello 2"]; [outsideArray addObject:insideArray]; [insideArray removeAllObjects]; [insideArray addObject:@"Hello 3"]; [insideAr...

Are the built-in images in iPhone documented, and is there a list of their names somewhere?

I discovered somewhat by accident that if you make a UIButton in Interface Builder and type in Plus in the image field, a + image appears for the button. A similar result comes from typing Minus. I am wondering if this is a bug, or if there is some way the poor programmers can access the built-in general GUI images from other apple apps...

uitextview and sqlite3

Hi guys, i would like to know whether is it possible to save the edited text in UITextView to sqlite3 by using a button?if so is there anywhere i can find the easiest way to do it?been googling but in vain.. ...

is it possible to make a Dynamic application with NSClassFromString() ?

I want to use XML or JSON to told my app. I want to make a dynamic application that will change a feature by passing class from XML. is it possible ? if YES, could you please show me how to use NSClassFromString to interface with XML or JSON parser? ...

Line breaks in "NSString"s returned from PList don't work.

I've seen this post: http://stackoverflow.com/questions/2035567/nsstring-newline-escape-in-plist but I'd like to know if there's a way to pragmatically render \n line breaks. I'm currently using: decisionText.text = [NSString stringWithFormat: (@"%@", [replies objectAtIndex:(arc4random() % [replies count])])]; Which randomly grabs a ...

Start one functon after another finished iphone

I have a function that updates the gps coordinate lat and long then sends a tweet with the lat and long info attached. I want the function to wait until the lat and long are filled before the tweet goes through but it seems to do both at the same time so the lat and long don't get filled in. How do I make the gps location update first? ...

CoreData: Sort and Section on Relationships

I have two questions about using Core Data. Taking the typical case of Employee and Department as an example. The Employee entity has a relationship field "deparment" as to-one to Department, and the Department entity has a relationship "employee" as to-many to Employee entity. I would like to display all the employees in a TableView in...

iTunes Connect rejects my binary because I used a pre-release version of the SDK, what should I do?

I downloaded a pre-release version of the iPhone SDK and tried to update one of my existing apps using a binary I built with it. Obviously you are not supposed to do this but I had forgotten about the warning when I installed the pre-release SDK. Anyway - I have two questions: Can I simply set the base SDK to an earlier version in the...

Can we use sleep(9);Function

Can we use sleep function at applicationDidFinishLaunching to take more time to show Splash screen?.Is this Valid in HIG ...

How i find the greatest number from six or more digit number?

Hi,thanks in advance, I have the code in which i want to find out the greatest number from six numbers, the code as follows, if( (pixels->r == 244 || pixels->g == 242 || pixels->b == 245) || (pixels->r == 236 || pixels->g == 235 || pixels->b == 233) || (pixels->r == 250 || pixels->g == 249 || pixels->b == 247) || (pixel...

First "Simple" Audio Player Appication

Hi Everyone Can anybody please tell me how to implement an audio player appilcation in iphone. I am pretty new to iphone development and i am just starting to learn the tricks of the trade. PS:I need a sample code! Thanks ...

iphone core data app crash

I'm able to complete my iphone app using core data internally. But for the first time when I'm running in simulator or on device its crashing with following error: 2010-03-18 10:55:41.785 CrData[1605:4603] Unresolved error Error Domain=NSCocoaErrorDomain Code=513 UserInfo=0x50448d0 "Operation could not be completed. (Cocoa error 513.)",...

Is there a way to recognize an item is a file or a directory?

I hope to know if there is a way to detect an item is a file or directory? ...

question related to backbutton of UIToolbar

sir I'm getting 2 different values in back button click My question is, If I want to back to view as per my value coming in int variable. how is it possible? My second question is that my project is based on UINavigationController So,how should i do that? bcoz i'm using PushviewController to puch the new view from olderview Thanks ...

Convert nsdata to nsstring

Hi, I have utf8 encoded nsdata from windows server. I want to convert it to nsstring for iphone. Since data contains characters(like degree symbol) which have different values on both platforms, how do I convert data to string. ...

how can i add concept of theme or skin to iPhone application

how can i add concept of theme or skin to iPhone application ? my app will download themes from location upon purchase and then it will be applicable to apply that theme to application .. does apple support any such thing? ...