iphone

Zooming with UITextView and Content Size

This question is similar to this one, but hopefully it will pick up some more interest due to me having tried some stuff. I am trying to do standard pinch-pan scrolling in a UITextView. My delegate implements UITextViewDelegate and implements this method - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return sel...

NSCalendar getting day difference wrong

I'm trying to use [[NSCalendar currentCalendar] ordinalityOfUnit:NSDayCalendarUnit inUnit:NSEraCalendarUnit forDate:date] on two different dates to see if they fall on the same day. However, if my time zone is different (say, somewhere in Germany), even though the dates are obviously the same, the days returned are different. If I use ...

UIImagePickerController returned image woes

I have a UIImagePickerController that lets the user pick an image from their library, edit it, and then save the product out to disk. Before it saves, however, I need to update a UIImageView to hold the edited photo. But when I go to set the UIImageView's image property, the program crashes. It still can save to disk. The UIImageView is...

iPhone App Fails to Launch in Time 8badf00d - Crash Log

Hi, I have been searching for days on this topic and cannot come up with a straight answer on how to cut down on the launch time of my app. Can anyone take a couple minutes to interpret this crash log for me (or teach me how)? Cuz I have no clue and I have tried searching and even contacting Apple. Thanks so much in advance. This fo...

iphone Feed Type Text with Hyperlinks

Hi All, Im creating a tableview that displays a feed similar to the facebook iphone app news feed. Im just wondering what control i should use in my custom table cell that will allow me to show a mixture of text and hyperlinks. e.g. UserA has just sent you a message. Where "UserA" is a hyperlink and when the user clicks on it I need to b...

Has anyone successfully used MPOAuth on iPhone to connect with twitter?

My project builds fine but when it gets to line pasted bellow it crashes with the following message. CODE: oauthAPI = [[MPOAuthAPI alloc] initWithCredentials:credentials authenticationURL:[NSURL URLWithString:@"https://twitter.com/oauth/"] andBaseURL:[NSURL URLWithString:@"https://twitter.com/"]]; ERROR: Assertion f...

Does an iPhone Enterprise provisioning profile need to specify phone UUIDs like an ad-hoc provisioning profile does?

We are an iPhone Developer Program member. We've got a DUNS number but not the 500 employees necessary to join the iPhone Developer Enterprise Program. Therefore I can can't see how things exactly operate for the Enterprise level. But we have customers that are big enough to be Enterprise developers and we could distribute our applicatio...

How to scale up a PDF containing a vector-based graphic drawn by CGContextDrawPDFPage in Cocoa Touch

Hi guys, ok so here is what I want to do: Load a PDF containing a vector graphic Scale it up Draw it to a graphics context Create a UIImage from the result and present it Everything works fine, except the fact that the graphic loses quality and looks pixelized :( Here is the code where the scaling happens: // PDF loaded before CGP...

Simulator app is no longer automatically updated

I have just upgraded to xcode 3.2.3. When I build and run the app, the simulator is not updated with the latest app build. Anyone knows why this has changed in this new release of xcode. If it is it's a shame as the environment is not as productive as it used to be, having to delete the app file each time in finder. Any ideas? ...

Force CALayer's rotation direction?

Hi guys, This one has been driving me nuts... Considering "plane" is a CALayer, I rotate it in the X axis: plane.transform = CATransform3DMakeRotation(180 * M_PI / 180.0f, 1.0f, 0.0f, 0.0f); And this makes it rotate clockwise, which is perfect. Now, at some point in time, I want it to return to 0 degrees, so I use: plane.transform...

iPhone SDK: accessing indexed color PNG images

Hello, I'm interested in loading indexed-color PNG images in my iPhone application. Once they're loaded, I want to access the images on a per-pixel basis. In particular, I want to get the index of the color (rather than the color itself) of individual pixels. Unfortunately, there does not seem to be a way to access pixels via the UIIma...

instance method of class for iphone

i want to create some header file for future use but i have 1 problem i have defined a method in lets say Rimage class called check1 now i want to call that from maiviewcont so i did this in mainVC.h i defined a instance of Rimage class #import <UIKit/UIKit.h> @class Rimage; @interface Rahul_imageplaceCordinatesViewController : UIV...

Unable to create UIBackgroundModes key in Info.plist for iOS4

I have an audio application which works great for iPhone 3.1.x versions. I am trying to upgrade it to iOS4.0 to work in multitasking environment. When I try to create a new "UIBackgroundModes" key in info.plist, it ("Required Background Modes") doesn't show up in drop down list? I also upgraded the Xcode SDK to 3.2.3, Base SDK to 4.0, ...

whats the best way to store a single object in core data for a user

I have a simple iPhone app which accesses some remote data on start-up then asks the user to select one of the options chosen, but this happens each time the app starts, and I want the app to remember that choice for next time around, how can I persist this object using Core Data? Im very new to Core Data, and I figure its something to ...

Delay UITableView update when NSFetchedResultsController is updated due to NSManagedObjectContext save

I am sorting the UITableView by using a predicate with NSFetchedResultsController. But, when I make a change in a detail view and save it, the object I changed immediately gets placed in its new location in the UITableView. I have up/down buttons similar to the message view in Mail. This behavior disrupts the ordering of items, and I'd ...

parsing xml for iphone

can i parse my XML in this method Blockquote - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // here some instance of XMLparser ?? } Blockquote like whenevrr uer press table cell then for detail view i want to pull data at that time only and for that specfic only as i have 8k da...

Is there an easy way with NSDateFormatter to get "Today", "Tomorrow","Friday" style dates?

Hi, I'm working on setting up NSDateFormatter to explain the date, and I'd like something short but more intuitive than 15/07/10. I think I've seen some formats that will say simply "Today" or "Tomorrow" or the day of the week for subsequent days of the same week. Is there a simple apple-approved way to get this type of date? Thanks. ...

How to create a table in objective C?

Hi, everyone, I am the beginner of the objective C and I want to ask some general question. I have a NSArray * object, which contain the first name and the last name (see below example), and I would like to show the format like a table (as well as the iPhone contacts but only display the content is enough, not the search and group and ...

Using the same iPhone app name as many other apps

Does anyone know where I set my iPhone apps name? When trying to determine what to call my iPhone app... I noticed that I can pick a name that ALREADY has several apps called the same thing. Why is that allowed? http://tinypic.com/r/nygwso/3 ...

objc: avoid protocol method name conflicts?

Hi all, I define protocol with a method name is: - (id)initWithDelegate:(id <Foo>)delegate; While in my project, there also has a third party protocol (in different class): - (id)initWithDelegate:(NSObject *)delegate; In another class, which imports both protocols, I just use the second method: id thirdPartyObject = [[Thir...