I have an issue where an image resource (Default.png) is included in a build for the simulator but is not being included when built for device. I have verified this by looking at the *.app package contents? I have also verified that the resource is selected for the active target. Any thoughts on what else I can look at to debug this?
Th...
Hi,
I am attempting to write an real-time image processing application on the iphone.
Currently, I am taking pictures with takepicture method (the uiGetScreeImage output has a too low resolution) but since I receive a UImage from the ImagePickerController, which is 3Mpixels, I have to draw it onto a context and that takes a lot of time...
does anyone know how to display a number on the screen/iphone simulator?
I can load the data and create a x/y graph. Now instead of showing the graph, I load the data value from a text file, and I want to display the number on the screen. Does anyone know what function i can use?
NSString *data =[myText objectAtIndex:i];
output_data_val...
I have an app that has a username and password field. I want to validate the input before the the user is allowed to stop editing the field. To do that, I'm using the textFieldShouldEndEditing delegate method. If the input doesn't validate I display a UIAlertView.
This approach works as advertised - the user cannot leave the field if th...
Hi there.
I'm using a UISwitch-Component at the bottom of a view that sits within a UIScrollView.
Now the problem that appeared, is that the switch is nearly impossible to swipe because the UIScrollView seems to dominate the userinput.
Switching works very well by tapping the switch, but from my point of view, most users "switch" the UI...
I have a C library that I'm planning to use in an iPhone application. It writes a lot of its debug information to stderr. Is there an easy way to redirect stderr/stdout to my XCode console?
Will I have to write wrappers that call NSLog? If so, what would be the best way of doing so?
...
I have followed the instructions Apple publishes for unit testing applications on iPhone and things work great when I set the active SDK to "iPhone Simulator". I have it configured to always build and run my tests as part of building the application itself.
Apple implies (by omission) that this should work all of the time, but the tests...
I'm developing an application that asks for a PIN when you start it. That's not great, but I can live with it. The problem is I'm being asked to ask for the PIN each time the phone wakes from sleep, too. Combined with the OS asking for its passcode, it's too much.
Is there any legitimate way to detect if the phone has a passcode require...
What would be the settings to build and have accepted an universal app for both the iPad and iPhone?
That is, what would be the settings in Project X Info > Build for
Architectures [ARCHS] ("Standard(armv6)" or "Optimized(armv6 armv7)" or other)
Valid Architectures [VALID_ARCHS] ("armv6 armv7" or other)
Build Active Architecture Only ...
-(BOOL) textFieldShouldReturn:(UITextField*) theTextField{
[theTextField resignFirstResponder];
return YES;
}
it is not working....
...
I have this chronic issue with iPhone UI development where views sometimes seem to appear on the screen in a location different than what is reported by their frame property. Here is what I am doing to try to debug the issue:
UIView *currentView = self.view;
while (currentView!=nil)
{
NSLog(@"frame: %f,%f,%f,%f", currentView.frame.o...
Normally, when we want to load a texture for OpenGL ES with .png, we simply add the .png images into XCode. The .png files will be altered for optimization by XCode and these altered png files can loaded into OpenGL ES texture during the runtime.
However, what I am trying to do is quite different. I am trying to load a .png file that i...
Hi Guys,
I'm looking for an Objective-C class that allows me to get the frequency of a live input sound on the iPhone. Didn't find anything useful.
Before you ask: the frequency will not change for 0.1 seconds.
Thanks for answers,
Christian
...
Hello,
Can anyone tell me how can I get a cell IndexPath?
I was saving the IndexPath in the tableView: cellForRowAtIndexPath: method but this only loads when the cell is viewed and I need to know its index path on the viewDidLoad method. this resulted in a null value because as I said it only loads its value after the cell was viewed on...
Hello,
I am trying to make a simple volume meter for the iPhone. I want the volume displayed in dB. When using this turorial, I am only getting measurements up to 78 dB. I've read that that is because the dBFS spectrum for 16 bit audio recordings is only 96 dB.
I tried modifying this piece of code in the init funcyion:
dataFormat.mSa...
here is my code
CGContextRef c = UIGraphicsGetCurrentContext();
CGContextBeginPath(c);
CGContextMoveToPoint(c, 277.0f, 21.0f);
CGFloat newpoint = 277.0f + (CGFloat)(self.msrp.text.length * 8);
//NSLog(@"%f", newpoint);
CGContextAddLineToPoint(c, newpoint, 21.0f);
CGContextStrokePath(c);
i am trying to draw a line over UIlabel, i am lo...
Basically, I want to animate a shrinking circle. I've already done this by drawing progressively smaller circles onto CGLayer's, and then using
if(index < 30){
[self performSelector:@selector(showNextLayer) withObject:nil afterDelay:(NSTimeInterval)0.02];
index++;
}
in my showNextLayer method. This works for my simple goal, but in ge...
I am developing an iPhone app with someone else. The app works fine for me, but he is running into a bug. We think this bug is related to the fact that he is getting multiple Application directories for this same app. In my ~/Library/Application Support/iPhone Simulator/User/Applications, I only have one folder at all times.
He says tha...
I have an situation where I get an NSDecimal, and I need an NSInteger. I do know it is a very small value (this is absolutely sure). It won't be bigger than 100. So It would be perfectly fine to cast it to NSInteger, no overflow would happen.
How could this be done? There's just an -doubleValue method in NSDecimal.
...
My iPhone app allows for users to type in their usernames and passwords so that they can login. When they login once, their usernames and passwords are saved so that users don't have to type it in again. My problem is, when the app starts again, it immediately starts logging them in, leaving the interface completely black. How would I go...