I have an iPhone app that, for some users, sometimes behaves as if with the main UIView has been removed from the view hierarchy. It always happens coincident with a significant event in the game. Other Core Graphics-drawn UIViews that are above it in the z-order remain, but the main one (an OpenGL view) appears to be gone, leaving the...
I'm afraid I introduced a memory leak or something to version 1.2 of my iPhone app. When I use 1.2 version I notice that my battery drains a lot quicker then with 1.1 version. For comparison, with 1.1 version the battery would last whole day and still have plenty of juice in the evening but with 1.2 I find that I have to plug it in mid a...
Is there any way to change the UINavigationBar and the colors of the more and configure views of a UIToolbar? I have an app with a black toolbar and black nav bars but the more view is now out of place. Any way to make this match?
Is there any way to get ahold of the configure view to alter it?
NOTE: This question refers to the confi...
The question is simple: How do you load custom UITableViewCells from Xib files? Doing so allows you to use Interface Builder to design your cells. The answer apparently is not simple due to memory managment issues. This thread mentions the issue and suggests a solution, but is pre NDA-release and lacks code. Here's a long thread that dis...
Hi There,
How can one get iphone system information such as sdk version?
The infomration i need is similar to the device information you see when your iphone/itouch is connected to itunes.
I can use UniqueDevice to get the serial number but cant seem to find any system properties or request methods in there.
Look forward to your thought...
Hi,
it is simple to set the Return key programmatically:
textField.returnKeyType = UIReturnKeyDone; // This is in the loadView/init-method
However, it seems that it is not so easy to toggle that key, i.e. change it from Done to something else depending on, for example, what is currently shown in the text field! That is, a subsequent st...
Hello, I am developing a iPhone (Utility Application) app using Xcode and Interface Builder (IB). I am using a UIPickerView in my app using IB. But I dont know how to connect UIPickerView in my app. Its show a empty picker. How can I connect data in UIPickerView? Plz tell me details...
...
Hi There,
What would be the quickest way to delete the contents in the documents directory.
I have a list of the contents loaded into an NSArray but I'm not sure of the objective c on how to delete safely. I've googled for a solution but cant seem to find anything.
Thanks for your help.
PS, can you recommend a good book for Begginners o...
Hi There,
Is it possible to use objective c to signal for application to close?
Regards,
Toby
...
Used the MyGizmoClass example in a iPhone app where I have an object that sets and maintain db info.
How do I eliminate the
'MyGizmoClass' may not respond to '+sharedManager'
Warning
The offending line of code is:
NSString *databasePath = [[MyGizmoClass sharedManager]databasePath];
...
I was asking myself if there are examples online which covers how you can for instance detect shapes in touch gestures.
for example a rectangle or a circle (or more complex a heart .. )
or determine the speed of swiping (over time ( like i'm swiping my iphone against 50mph ))
...
I'm writing an iPhone app, and I've got an image which I'ld like to have swirl outwards.
Currently my code looks like this (wrapped in a beginAnimations/commitAnimations block):
scale = CGAffineTransformScale(CGAffineTransformIdentity, 5.0f, 5.0f);
swirl = CGAffineTransformRotate(scale, M_PI);
[player setTransform:swirl];
[player s...
Is it possible to change the styling of iPhone native buttons? For example, I'd like to use a smaller font size for part of the button text, and larger for another - something like
<small>pick a</small><big>color</big>
I'd also like to use buttons that form a right-arrow shape instead of being rectangular. Something like:
-----------...
I have an empty View-Based app. I'd like to do something with the x,y coordinates of every touch down on the screen. How do I do this?
...
I am new to iPhone development, so I'm sorry if this is a stupid question. I am developing an application whose purpose will be to route all iPhone activity through my company's proxy.
Is there a way to programmatically set system-wide proxy settings in the iPhone (which will also take effect on the 3G connection)?
I know there is a w...
Is it possible to set the backgroundColor of a UITableViewCell in a grouped UITableView and maintain the rounded corners of the cells?
All of my attempts results in a loss of the rounded corners.
mike
...
I'm using +[NSUserDefaults standardUserDefaults] to store application settings. This consists of roughly a dozen string values. Is it possible to delete these values permanently instead of just setting them to a default value?
...
i want to pass a variable from a viewcontroller to another the way i do is
at the first viewcontroller header file i declared a variable
1.h:
NSString *string;
and at the second viewcontroller i have import the 1.h in my 2.m file,the way i call the variable is
2.m:
NSString *string2 = 1.string
however it return an error can someb...
How to set the UIImageView's layer position relative to sibling views?
I mean like the swapDepths() / setChildIndex() in flash
many thanks for reading
...
I have a collection of NSString objects that contain arabic text. However, when I try to display any of them using a UILabel, the text shows left-to-right instead of right-to-left (NSLog shows the strings properly)
I am thinking about a work-around, applying a transform to the UILabel to make a y-axis symmetry, but how can I detect if a...