There are some games which have some small pictures as sprites and can move by touch.If the sprite is a larger picture,the touch is quite normal.And we can use the function CGRectContainsPoint check for the sprite.But when the sprite is quite small,this function looks not good.Is there other method can sovle the problem?
...
I've made a custom MKAnnotation class, MapLocation. I'm having no trouble setting or getting properties, except in this method to create an MKAnnotationView. I need to do it here, since it's supposed to look up a location type from the annotation's index and select one of a family of custom annotation images for the annotationView.
Afte...
I made a universal app and I need to test on iPhone and iPad devices. However, I only have an iPad now but not an iPhone. Is there an easy way to use an iPad to simulate an iPhone environment so that I can do testing on iPad (and pretend it is an iPhone)?
Thanks in advanced.
...
I'm just getting started on a new iPhone/iPad development project, and I need to display a document with rich styled text (potentially with embedded images). The user will touch the document, dragging to highlight individual words or multiline text spans. When the text is highlighted, a context menu will appear, letting them change the c...
I have a UIPresentationFormSheet (contains a textview) that appears in the center of the screen when I am in vertical orientation. When I dismiss the modal view, it disappears fine.
When I am in horizontal orientation my modal view does not appear in the center of the screen. I have to dismiss my keyboard for the modal view to appear in...
If I've got a plist set up like this
Key Type Value
Root Array
Item 0 Dictionary
-Title String Part One
-Description String Welcome to part one. Have fun
Item 1 Dictionary
-Title String Part Two
-Description String Welcome to part two. Fun too.
Item 2 ...
Hey everyone - I cant seem to figure out what i am doing wrong here. I create a button in my rootviewcontroller. I immediately hide it, when my parser is done that was started on a seperate thread I send it to a method that "unhides" my button. But... its not "unhiding" it.
Here is what i have in my ViewDidLoad of my RootViewController...
I have a strange (to me) memory leak when accessing an entity in a relationship.
Series and Tiles have an inverse relationship to each other.
// set up the fetch request
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Series" inManagedObjectContext:managed...
Consider a very simple UITableView with one of two states.
First state:
One (overall) table footer
One section containing two rows, a section header, and a section footer
Second state:
No table footer
One section containing four rows and no section header/footer
In both cases, each row is essentially one of four possible UITable...
Hi All,
I have a Core Data-based iPhone app with a pre-populated read-only database. What protection (if any) can I apply to my database to reduce the likelihood of piracy / the database being read off a jail-broken iPhone?
Most code examples for using a pre-populated sqlite database show the database being copied from the app bundle...
I'd like to display the contents of the property myarray, from the following singleton:
[Session sharedManager].myarray
I've tried these:
po [Session sharedManager]. myarray
po [[Session sharedManager] myarray]
but always get this error:
A syntax error near end of expression.
Any suggestions?
--- EDIT ---
I'm working with SDK...
Hi all,
I'm sorry if I didn't explain my problem well enough in the title.
In my application, I'm using a small subview to create a very basic calculator on the top side of the screen (I just have an UITextField to show the operations and two buttons). Instead of using a custom keyboard for it, I want to use the standard iPhone number...
Hi All,
I'm currently working on an application that users a number of different views to obtain user information and I have just hit a snag.
My current method saves each user detail against a key value in a plist file, the problem is that when the user switches to another view and saves their data again, the old keys and data are overw...
I tried to assign a managed object (C) with its property another managed object (B) (a one-to-one relationship) in which this other managed object (B) has a to-many relationship with one other managed object (A). There is an error from this assignment in which I copied as follows:
#0 0x020e53a7 in ___forwarding___
#1 0x020c16c2 in __f...
Hi, I'm developing an application for a company that requiers their users to identify themselves using a certificate.
Basically the application will create a connection with the server and, using the NSURLConnnection delegate methods, the app will send the user credentials. Right now I have been able to read the credentials from a ...
I have a UIPickerView with a variable number of components to display. In its contoller i have this -pickerView:withForComponent:
- (CGFloat)pickerView:(UIPickerView *)pv widthForComponent:(NSInteger)component {
CGFloat f;
if (component == 0) {
f = 30;
} else {
if ([componentsData count]>2) {
f =...
Hi everybody,
I am using MPVolumeView in an application to control the volume of a audio track. I have used following code. but volume view is not visible on the view. Anybody has faced the same problem??
MPVolumeView *myVolume = [[MPVolumeView alloc] initWithFrame:CGRectMake(10, 10, 300, 40)];
[myVolume sizeToFit];
[self.view addSubv...
Is it possible to add a feature to record the game play within your game without eating up too much memory ?
I want to allow the user to save there game as some sort of video file if thats possible ?
// Edit - made things easier to be more relistic//
The idea is that the user can use the app to change the textures within a pre-animate...
I'm using jQTouch on an iPhone application and one of our requirements is to make this work in the iPad with pixel doubling. I believe there's a bug/issue with jQTouch on the iPad (running within an app UIWebView, but pixel doubled) that causes the screen to flicker during transitions. Pretty much every transition has a stutter/flicker ...
Hi All,
I have a simple navigation based app which has a bunch fo forms in it, I have a method connected to a button that saves data when the button is tapped but I was wondering if I could call the same method when the back button is tapped in the navigation? Just incase a user fails to use the save button. If it is possible, how would...