I wonder how to save the UIImage object from UIImagePickerController into the App Document directory. I tried to use UIImageJPEGRepresentation() method and UIImagePNGRepresentation(), but it seemed the image data was changed. Is there any method to keep the original image content without any compression?
...
I have an NSString that I would like to draw it's contents to a UIImage but have absolutely NO idea how I would go about doing this. I need to call a method that I give it an NSString and returns a UIImage with the text drawn into it.
Please help!!
...
I find all these work-arounds for NSUrlConnection's which use a closed API to access a non-trusted SSL certificate. The other options is to install the certificate first by using the Safari/Mail app..
I'd like to know what root certificates are installed, so I can get one from the trusted CA, the way you're supposed to do it..
Anyone ...
I am trying to make Twitter work in my app and everything works fine except the code does not seem to recognize an error from Twitter. If the username/password are not valid, I get an error message through this function:
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
NSString* strData = [[[NSString al...
I want to create a Tabbar that the number of tab bar items is defined by the user (let say it stores in a variable NumberOfTabBarItem). Is there a way to put tab bar items into some sort of array and display?
Thanks!
...
Hi,
I have a couple of html links attached to buttons in my app.
I'm just wondering whats the best practice for following a html link in an iphone app.
I'm not sure if the app should exit and open safari or if a web container should be used etc.
...
I have the following code which seems to go on indefinitely until the app crashes. It seems to happen with the recursion in the datastructureFromManagedObject method. I suspect that this method:
1) looks at the first managed object and follows any relationship property recursively.
2) examines the object at the other end of the relation...
hi ..
I just work on web-based application for iPhone, And I try to retrieve data from my website to my app.
can I edit XML code for my website as I want to be in my iPhone app?
for example, XML for my website is:
<item>
<title>Announcement title</title>
<link>iphone feed</link>
<description>Announcement type</description>
<category>Stu...
I would like to dig into developing for jailbroken devices, just to test what the device could do. I would like, for instance, to alter the ipod music based on geo-location, so i have to program a new daemon that runs in background and fetch gps informations at regular interlavs and then make something with them.
Longitude, longitude, f...
I am using an if statement to check the value of a BOOLEAN when i click on a button. When the button is clicked if the value is false i want to display a UIActivityIndicator and if the value is true i want to push the new view. I can do this fine but i want the view to change automatically when the BOOLEAN Becomes true if the user has al...
For an iPhone ebook application I need to break arbitrarily long HTML documents up into pages which fit exactly on one screen. If I simply use UIWebView for this, the bottom-most lines tend to get displayed only partly: the rest disappears off the edge of the view.
So I assume I would need to know how many complete lines (or characters)...
I'm building an app with two tabs. The first tab has a main tableview that connects to a detail view of the row. The second tab will display a tableView based on the user adding content to it by tapping a button on the detail view.
My question is this. What is the correct design pattern to do this? Do I create a second ManagedObjectCont...
How can I create a button that looks like the one found in the screenshot below on an iPhone with the 3.0 SDK? It's a button that shows when connecting to a host iTunes library from the iTunes remote.
Is it a case of writing a custom control or is this a stock style?
...
I have an array of strings that are comma separated such as:
Steve Jobs,12,CA
Fake Name,21,CA
Test Name,22,CA
Bill Gates,44,WA
Bill Nye,21,OR
I have those values in an NSScanner object so that I can loop through the values and get each comma seperated value using objectAtIndex.
So, what I would like to do, is group the array items in...
I'm trying to debug an issue that is really stumping me. Basically, I have a UIView subclass that draws a gradient to itself in drawRect: based on colors that i provide in the init method. The problem occurs when the view draws itself again. If i call setNeedsDisplay on the view, or if say the view is removed due to an out of memory w...
I am trying to figure out the best way to bulk delete objects inside of my Core Data database.
I have some objects with a parent/child relationship. At times I need to "refresh" the parent object by clearing out all of the existing children objects and adding new ones to Core Data. The 'delete all' portion of this operation is where I...
I'm creating a simple drawing application and would like some help with drawing rectangles based on the user's touch events. I'm able to draw a rectangle using Core Graphics from the point in touchesBegan to the point in touchesEnded. This rectangle is then displayed once the touchesEnded event is fired.
However, I would like to be abl...
New to iPhone development and working through exercises and examples to get me up to speed. Does anyone have a good reference for connecting an iPhone app to a website/webservice and push/pull data?
...
I am having a hard time getting video to play in an application that I am working on and I think the answer has to do with the views and view controllers. I have the flow depicted below. When the button is clicked, the audio from the video is playing, but nothing is displayed on screen. Anyone have any ideas?
-(IBAction) playMovie {
Pl...
I'm trying to serialize two NSMutableArrays of NSObjects that implement the NSCoding protocol. However it works for one (stacks) and not the other (cards). I have the following block of code:
-(void) saveCards
{
NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString* document...