iphone

iphone string manipulation

Hi All, Coming across from vb.net to iphone. Im currently trying to iterate through a string to pull values out of it. I have the following example string: Field1ExampleField2ExampleField1ExampleField2Example So basically i want to loop through the string and put the Field1 and Field2 of each value into a list. In VB i would: while s...

wait_fences: failed to receive reply: 10004003 for IPHONE camera sometime it work sometime dont

i have used 2 textfeild and this i am using this () to shoot pic - (IBAction)shoot:(id)sender { NSLog(@" START SHOOTING"); UIImagePickerController * picker1 = [[UIImagePickerController alloc] init]; picker1.delegate = self; if((UIButton *) sender == choosePhotoBtn) { picker1.sourceType = UIImagePickerControlle...

Move a box2d body via cocos2d actions

Anyone know of a good tutorial for this? I am new to box 2d and don't really understand it much. ...

AssetsLibrary and ImageView -setImage Slowness

So this one is pretty odd ad I'm not sure if the trouble is with the AssetsLibrary API, but I can't figure out what else might be happening. I am loading an array with ALAssets using the -enumerateAssetsUsingBlock method on ALAssetsGroup. When it completes, I am loading a custom image scroller. As the scroller finishes scrolling, I use ...

Log to file accelerometer data

I would like add a this Apple example [AccelerometerGraph] the ability to store the data in a file until the app isn't closed. Without locking issues and other crappy problems of real time data collection. Any idea, sample or something that a semi newbie can play with? ...

Parsing date in Objective-C

How can I parse this into an objective-c NSDate most efficiently? "2010-07-13T11:22:33-07:00" This is what I tried NSDateFormatter *format = [[NSDateFormatter alloc] init]; [format setDateFormat:@"yyyy-MMM-dd'T'HH:mm:ssZ"]; but did not work ...

Why does this EXC_BAD_ACCESS happen with long long and not with int?

I've run into a EXC_BAD_ACCESS with a piece of code that deals with data serialization. The code only fails on device (iPhone) and not on simulator. It also fails only on certain data types. Here is a test code that reproduces the problem: template <typename T> void test_alignment() { // allocate memory and record the original addr...

How to analysis iphone's device log?

hey,every human,How to analysis iphone's device log? In addition, What is the meaning of the following content: and,what is the meaning of the : 0 libobjc.A.dylib 0x00007dd2 prepareForMethodLookup + 10", Thread 0 Crashed: 0 libobjc.A.dylib 0x00007dd2 prepareForMethodLookup + 10 1 libobjc.A.dylib ...

how to make general collision with images in for loop

collison but its only working for 1 image - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint p = [touch locationInView:self.view]; if (CGRectContainsPoint(CGRectMake(myImage1.frame.origin.x, myImage1.frame.origin.y, myImage1.frame.size.width, myImage1.frame...

Media Player Playback of mov fails

I'm uploading mov files selected with the uiimagepickercontroller to my amazon s3 bucket but when I then try to play them with the media player framework, I'm told it's an invalid format. Here's one: http://s3.amazonaws.com/irovr/users/9/92f7acd7-31b5-437c-8a30-16630e869d29/DEEDBFAE-8D41-4B52-B223-AA03B3A25491.mov ...

TableView doesn't reload. Using Core Data.

My 1st view is a tableView (RootViewController). My 2nd view is a tableView whose data depends on an object that is passed from the RootViewController. My 3rd view is a view that has a textField. It also takes the same object that the 2nd view took. That textField holds the name of the passed object. When I change it, save it and go back...

iPhone Product Name

I have an App already live on the App Store and I am now releasing an update for it. But I added the In-App feature to the app and realized my app name in iTunes Connect and the product name in XCode were different and the in-app didn't work. So I changed the product name in XCode to match iTunes Connect and the in-app purchase works. My...

Apple's iOS ScrollViewSuite example code crashes- Low Memory

I'm adapting the third part of ScrollViewSuite to display a large map in my app. Unfortunately, it's sometimes very easy to crash Apple's unmodified sample code on my device- a 2nd gen iPod Touch. If I swipe and pinch many times and very quickly, the app will crash with low memory. If this happens, it can be consistently and quickly repr...

Don't understand memory analysis

Hi, I have upgraded my XCode to versio 3.2.3 to support iOS4 on my iphone project. using the static analyser I checked for memory management problems. In one of my routines I get the following problem: I generate a user alert after adding an event to the calendar to give him a status. This runs fine, but the memory analyser doesn't li...

iPhone SDK UIWebView with Interface Builder

I have trouble accomplishing something that sounds very simple. Using Interface Builder, I created a UIWebView object. Next, I created a new controller - HomeViewController and assigned it to the WebView under "NIB Name" property. Next I need to load a web site (let's say http://google.com) into that WebView when user accesses that view...

how to check installed application in iphone device

Hi... I am developing an application in which i need to find the apps which are already installed in iphone device such as Skype, facebook. I need to check it objective -c . Please give me code snippet if possible otherwise a link to get the solution. If it not possible then tell me other way to check installed application in iphone deve...

objective C for-loop break and continue

How can i use a 'break' statement within a for-loop which continues form a specified label? ex; outer: for(int i = 0;i<[arABFBmatches count];i++){ for(int i = 0;i<[arABFBmatches count];i++){ // break _____; } } How to break to outer? ...

Sample iPhone interview questions?

Is there any URL or anything that gives the basic questions asked in the interview for iphone developer? ...

How to tell if iPhone application was launched by backgrounding or not.

My application uses NSUserDefaults to store some values so that it can restore them on application update or if backgrounding is quit. Backgrounding automatically saves my integer values, but if the user quits the application from the launcher, the numbers are lost too, and the ViewDidUnload method I guess doesn't evoke when entering bac...

preparing a core data result set for a grouped uitableview

hi everyone, i've got a NSMutableArray created from a data source object NSMutableArray *mutableFetchResults = [[managedObjectContext executeFetchRequest:request error:&error] mutableCopy]; [self setAmountArray: mutableFetchResults]; every object in my mutable array has the two instance variables name and timeadded. now i want to ...