iphone

How to use the backgrounder SpringBoardHooks?

I would love to use these hooks for a jailbreak iPhone app. This would allow the app to request to be backgrounded, providing that Backgrounder is installed. Seeing previous questions on StackOverflow, I think I'm not the only one who could use this. What are the steps required? Do I need to extract the private SpringBoard api's, or do ...

iphone - in-app purchase not working.

HI, I am having a strange problem. I am developing iphone application with in-app purchases in it. When i do a release build with Developer provisioning . in-app purchase work fine. but when i do iphone distribution build. in-app purchase stops working ... it always comes in failure .. why is that happening ??? any ideas .. ...

NSCoding doesn't seem to store the frame of my UIImageView

I can't seem to get NSCoding to store the 'frame' or 'center' properties of my UIImageView subclassed object. It seems to store everything else, both custom properties and standard class properties (e.g. 'hidden', etc...), but not the 'frame' or 'center' properties. I'm NOT trying to archive a UIImage (as this does not comply with NSCo...

How To Create A Gallery on iOS

Hi! I'm starting to develop a simple application for iOS, and this application is a simple gallery of some photo (taken from a website). The first problem I encountered is how to create the view for the gallery. The view should be something like this (or the Photo App): however doing a view this way is problematic, first because it us...

Yet Another IPhone Memory Management Question

So say I'm getting results from my core data request: (this is example code) On a button press event it does: NSMutableArray *results = [[myContext executeFetchRequest:request error:&error] mutableCopy]; myObject = (MyObject *)[mutableFetchResults1 objectAtIndex:0]; // assume that there's something in there Now I want myObject to sti...

MonoTouch NavigationController on SubView?

Every example I can find shows me how to create a project where the main window is a NavigationController. I don't want that because once the users navigate to a certain part of my app, I don't want them to be able to get back until a certain point. For the life of me I cannot figure out how to make a NavigationController be a SubView o...

Core Data sorting in one to many relationship

I have setup a data model where Student Entity has a name a 1-to-many relationship with Subject. Each Subject that he attends has a number of Class Times. The code below sorts it, based on the Student name, this is straight forward. NSEntityDescription *entity = [NSEntityDescription entityForName:@"Student" inManagedObjectContext:...

UIImage from photo library very large

Hi everyone! In my game I'm grabbing an image from the iPhone's photo library using the UIImagePickerController, which returns a UIImage. Because the image is a huge resolution (1536x2048), this UIImage takes up almost 20mb in memory. To resolve this, I shrink the image significantly before using it to generate a sprite and this works i...

Adding stationary UIButton to UIScrollview

Hi, I am creating an app and on the third layer of the app, the view controller contains a UIScrollView with two images that scroll horizontally. I want to add a button to this view that is stationary with respect to the scroll view. So, the user can scroll the images but the button remains where it is. Is there a way for me to do this? ...

On-screen dimensions of a UIScrollView

I have a view controller containing a status bar and a navigation controller on top and under these a UIScrollView that fill up the remaining space. The ScrollView displays an image. Is it possible to read the on-screen dimensions of the ScrollView without any hard-coded pixel values? For the UIScrollView both frame and bounds return th...

Iphone development: UIColor / CGColor components comparison

Hello, I've got some internal codes for colors in my application, so I created a function that, given a color, returns the code. I'm having problems as it just doesn't work and return always "01" for every color else than the red, which returns the proper code. Has someone a clue about it? (NSString *)internalColorCode:(UIColor *)color ...

Do I need to import the AppDelegate_Phone.h file?

Do I need to import the AppDelegate_Phone.h file (which in turn imports AppDelegate_Shared.h)? I am trying to use Core Data. The AppDelegate_Shared.h already has it set up. If I want to read information into a UITableView from Core Data, must I import my delegate file explicitly? ...

Should I obtain a Mac to develop or test my iPhone web app?

I've been developing an iPhone web app on a Windows XP box using MobiOne Test Center and Safari for testing and debugging and occasionally using a real iPhone for testing. The problem is that MobiOne, Safari (desktop), and the iPhone all produce different errors. Obviously I am most concerned with the errors that occur on the iPhone, sin...

LocationManger use empty string for Latitude and logitude

hello guys, i am using the locationManager. I get the error "system.invaildCastexception" cause i fill my NSString lat and lng with (null). I want to fill them with nothing. how can i fill my NSString with nothing. lat=[[NSString alloc] initWithString:@""]; does not work. Best Regards ...

Send SMS using MFMessageComposeViewController trims the recipients string

Hi, I'm trying to send an SMS to a email address (e.g. [email protected]) as follow: MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init]; picker.messageComposeDelegate = self; picker.recipients = [NSArray arrayWithObjects:@"[email protected]", nil]; However, the email address gets trimmed/form...

NSRegularExpression Help

Hi to all, I want parse, with iPhone's NSRegularExpression class, this text: <td class="rowhead">Uploaded</td><td align="left">652.81 GB</td> for extract Uploaded and 652.81 text. Thanks in advanced boys! ...

instance variable is unknown in the same controller

My code is really simple. One TableViewController with an instance variable "dataArray", the table is filled as the view appears. Problem: when I click on one of the entries (didSelectRowAtIndexPath), my app crashes. After debuging this example I have figured out, that "dataArray" has no objects at this time, but why? How can I display ...

jqtouch/sencha touch & pdf's

Hey Guys, I need to create a PDF viewer with scrolling, zooming and swipes for the iOS family of devices... I've played around using iframes and objects and I've had no luck on making anything decent. I guess I am looking for a few pointers, clues or code snippets to get PDF's looking good on iOS devices using UIWebView. Any comment ...

offline app using UIWebview for iPad

I am trying to build an iPad app which has one UIWebview. content is in asp.net. Now one of major requirement is that my app should support offline mode. First I tried looking Html5 cache manifest but as per this SO Answer it does not work with UIWebview Then I tried searching around caching mechanism available with UIWebview, I found ...

Tracking download progress of a response to a ASIFormDataRequest

Hi, I am sending a request with POST data to a web server. The web server returns with JSON response in case of an error or the file data itself if there are no errors. I would like to track the progress of the file data response. My code is based on the the sample code from ASIHttpRequest Tutorial ASIFormDataRequest *request = [ASIFo...