I have a UIAlertView that has a text field. So when it shows up the keyboard shows up too. To get the alert view in a better place I set a transformation to it:
CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0.0, 180);
[alert setTransform:myTransform];
This works fine, as long as the interface orientation does not ch...
Hello!
Sorry to bother, but I am in a bit of a pickle and I was wondering if anyone here could give me a hand.
I am currently designing a game in which enemies appear on the left side of the screen (out of boundaries) and move to the right. I have used a number of codes (this is using Sparrow Framework) and pretty much the number of ...
I have a section where I would like to customize the left area of a section a TableView - a bit like viewForHeaderInSection.
I have thought at using a cell for the section instead, but it would be a lot of nitty-gritty.
...
This is an extjs single-page application which works fine in FF, IE, and Safari.
There are several problems with viewing or using this extjs app in the iphone. The extjs panels/windows do not resize, as it would in a normal screen. When the user zooms out, the expanding viewing area is blanked out. An example image is below:
Ip...
Hi there
I have sent an adhoc distribution to a client who's iphone crashed. I asked him to send me the crash logs and he sent across two both named "ResetCounter.crash".
Does anyone know what this is? I've looked on the internet and there seems to be a lot of cases of this type of file, but no-one knows quite what it is, or what its t...
I have a situation where I sometimes need a real fullscreen view that also covers the status bar completely. When this view is gone, I want the status bar to be visible again below it. Is there a way to do this?
...
Hi,
I am trying to access the UITextView delegates and have a problem
I have a UIViewController with the UITextViewDelegate protocol and a Nib containing the textView.
If I set the delegate inside viewDidLoad like "textView.delegate = self" and I touch the textView, the app crashes without logging errors.
If I start editing the textVi...
Hi there,
My app is caching images perfectly but I'd like to add a border to the masked image.
I'm currently using the following code :
CGImageRef CopyImageAndAddAlphaChannel(CGImageRef sourceImage) {
CGImageRef retVal = NULL;
size_t width = CGImageGetWidth(sourceImage);
size_t height = CGImageGetHeight(sourceImage);
C...
I am trying to create a slide show using NSTimer... But the following code is not scrolling the images at regular intervals...
- (void)tilePages
{
// Calculate which pages are visible
CGRect visibleBounds = pagingScrollView.bounds;
int firstNeededPageIndex = floorf(CGRectGetMinX(visibleBounds) / CGRectGetWidth(visibleBounds));
int l...
I have a graph where user can draw the graph using touch gesture, i want the graph drawn to have smooth edges what Function should be used for this ?
Edit : I draw the graph using Touches method of the UIView, I store the traced path in an array, this array will be used in drawRectMethod to draw lines connecting these points, the probl...
I have an iPhone app for photographic purposes (kind of a lightbox). This app needs as much brightness as possible. Is there a way to change the screen brightness programmatically, and then restore it back some time later?
...
I have a modal view controller which calls another modal view controller in viewDidLoad based on an if condition.
The weird problem i'm facing is, the first time i compile the app and open the 1st modal view controller, it works fine and it goes on to show the 2nd view controller. Now, if i stop the app execution and rebuild & run the a...
Hi there
basically I have an NSDictionary with keys and values.
The keys are all numbers, but at the moment they are strings.
I want to be able to compare them as numbers in order to sort them.
eg: If I have a Dictionary like this:
{
"100" => (id)object,
"20" => (id)object,
"10" => (id)object,
"1000" => (id)object,
}
...
Hi,
I am doing my first steps in IPhone developing. I want to use some c\c++ code but I can't find any reference of how it's done (will very appriciate if you can also refer me to your source when you give an answear)
I have a file called calc.h containing a "calculator" class with simple add and mult functions, I imported it exactly a...
Hi Friends, I want to change the color of label text on selection and get back the previus color on deselection. If you have solution please tell me. Looking for good response as earlier :-)
...
Hey Guys,
Iam developing an iphone application and currently in the develpoment phase. Since my client need to verify my work I am sending him program builds with provision files. However sometimes he wants to add few UUIDs to existing provision file. What I want to know is does a new provision file works with old builds of my softwar...
I am using UIImagePickerController to capture video.
I have set the delegate to save the captured video when video capture is stopped.
The delegate does get called when stopVideoCapture is called by the program based on user action.
I would like the same actions to also happen if while video capture is in progress the user presses the h...
Hello all
I am just wondering what's the storage size for an iPad/iPhone app to use?
For memory, it is sure that every app can only use 100MB-like memory.
How about the storage? I mean the file system in iPad/iPhone app?
Use as much as I want until the file system is full? or something like that?
...
All,
I am fairly new to XCode and am trying to get a handle on how to best deal with connection issues when trying to use a WebView. I know there are related questions on SO, but none seem to offer complete solutions. I have the following code, but it seems a little inefficient. Hopefully, someone can help me refactor it down to a po...
I'm having a strange performance issue with core data and compound predicates. I have no problem doing very basic predicates or relatively complex ones, but if I try to create one that is 'somewhere in the middle' (a basic numeric match and an 'or' of a to-many relationship; see the 3rd example below), the app becomes un-responsive and h...