This has been driving me nuts all day.
I have a weird bug that I think I have narrowed down to an NSPredicate. I have two entities: List and Person. List has a to-many relationship to Person called persons and Person has a to-many relationship to List called lists.
I pass to my a tableview controller a List object. I then want that tab...
Is there a way to read audio files from the iPhone music library, or intercept the music the iPhone plays? I was thinking of making an app which generates content from music, either in real time or beforehand (like for example AudioSurf). Is there a way to do that?
...
So I'm looking how to make a similar button group for an application on the iPhone that looks like the buttons in the Yelp About Me page or Twitter for Mobile application on the profile pages. Are these just a segmented controller? Or possibly images? I can't really find any resources for this online, so I figured I'd ask here. Let me kn...
I'm trying to get the location of the touch event on the screen from
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event.
What code can I use to read the touch coordinates? I've gotten this far so far:
NSLog(@"Touch data: %@", [NSString stringWithFormat:@"NSSet: %@",[touches description]]);
I'm trying to make a game u...
Hey guys,
How can I get path to my resources on simulator and device?
I have this code:
[code]
NSString *tytul = [NSString stringWithUTF8String: tytul_c];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *myPathDocs = ...
Hi all,
I have this problem:
I have my code into my view that connect to internet to retrieve some info and populate a uitableview, and works fine..
To make order to my code I created my class derived to nsobject and I added all my code inside it...
the table is populated, but the app retrieve bad_access...
I think that the problem is th...
I have multiple textfields in a view (not a scrollview); 2 in particular are side by side, all are created in IB.
I use the same .xib for more than 1 entry screen. All textfields appear above the keyboard so keyboard covering these fields is NOT a problem.
On some screens I only need one of the two side-by-side textfields so I hide t...
My friend has recommended me this site and said you were very helpful. Nobody seems to know this information.
...
I have a unique and interesting difficulty: I need to find a way to (semi-)permanently store an html page on the iPhone, but the protocol and method I choose is up to me: for example, I could request that the files be packaged in a zip archive, then download it via a URL and unzip it on the iPhone to store/view. I think it would be compl...
Is there a way where I can only allow my app viewable in landscape mode? I've managed to default the application's orientation to landscape, however in the iPad simulator, when I do Command->Arrow, the application rotates to portrait. I've removed the listings in the plist under "Supported interface orientations" for both of the Portrait...
Hey all, this should be a simple task but for some reason i am making it harder... I am trying to save some text from an XML file to a NSString. But when i debug it, the string says "Out of scope".
Here is my code:
in my .h file:
@interface RootViewController : UIViewController<MBProgressHUDDelegate> {
NSString *thePW;
}
a...
I need to know when a users's profile was created. Is this possible through fql?
THANKS!
...
Is it possible to build an xcode project for iPhone and have it install the result on a connected device without actually running the application? I'm currently using Build & Run, but I'm debugging a peer to peer game, so I have to build & run for two different devices, stop tasks on each of those and then build & run on the simulator so...
I am building an iphone game. I have a set of NSStrings that I set periodically throughout the game life cycle. I am finding that I am in need of setting the same NSStrings often and looping through an array of NSStrings is ok for checking the value of the NSStrings atIndex:i, but setting them using the same method results in nothing. Ba...
Hi...i am new to iPhone programming..
my app is just like a quiz.. it has different type of quizs and many question in each quiz type
i want to save the values like strings(quiz name) and integers(question number) when an application is closed
so when the app is restarted i want to continue where it was stopped by using saved values
H...
I've been reading up on web services and SQL servers lately.
Basically, what I need is to access a SQL 2008 Server from the iPhone, so I go about creating SOAP web services as per http://www.developer.com/net/asp/article.php/10917_3767311_1/Creating-Native-Web-Services-in-SQL-Server.htm
Next, I access the data using the tutorial found ...
Hello,
I want to ask about the NSArray in objective C.
I want to create a dynamic array as I don't know about the size of the array. And I also want to insert some of the data to the array. However, I don't know how to decl, init and insert the element in to the array.
The following is the C++ version.
I want to create a empty array A...
Hi there,
I've been reading as much as I can about the new iPhone 4 high resolution (640 x 960), but am still confused.
Is it basically just a bigger screen like the iPad? If so, does it automatically translate touches, ie touch in the middle of the screen becomes (320, 480), or do I have to check the device and translate the touches m...
When I submit, following error message appear.
The binary you uploaded was invalid.
Apple is not currently accepting
applications built with this version
of the SDK.
I update my app but it's written by iPhone SDK 4 latest. I can't submit it. Can't we submit iPhone SDK 4 base app ?
...
I'm using an OpenGL Texture2D class and initWithString method to display strings to the user. When running with iOS 3.0 and XCode 3.1.3 all the text would appear black in the simulator and white on the phone. After updating to iOS 4.0, XCode 3.2.3, and iPhone SDK 4.0 the text appears black on the phone! Not so good since my app is alm...