iphone

Facebook Connect for iPhone - Request to like a page

I'm not sure if this is possible but using Facebook Connect for iPhone, can you request to like a facebook page? If this means showing the FB dialog box that is fine! Many thanks ...

global ADBannerView in iPhone app

Is it possible with a standard UINavigationController-rooted app, to have a single ADBannerView visible at the bottom of the screen, below the view hierarchy? That is, without modifying each view-controller/view that can be pushed to the root UINavigationController, can I have a global ADBannerView be visible? I'm not sure how to set ...

Can a html5 local app have an asp.net session? (local webapp for iPhone)

The context: I'm actually developing a small web app (C#/MVC2). Users are going to use their iPhones (and probably Android phones in the future) to access it. At the moment it's quite simple (it just shows some info and reports from our customer's ERP), and I decided to give a try at creating local webapp that the users could add to t...

App failing to see @2x images

This is driving me nuts. Been searching for 2 days, and I can't find any real solution or explanation for why this is happening. I know there are threads here on SO, as well as some other places, but they have been no help. I have read the Apple documentation on the matter. I have normal and @2x images in my app. They are named correctl...

how to remove datamodel from core data and add a new one?

Hi, I am working on a iphone application project. we have released one application with a coredata model, now in our new release we like to remove the old one and add a new one. (we are not storing any user values on existing core data model). we forgot to remove the xcdatamodel from our application folder, but we removed all code relat...

Need help fast -- CoreData error

Hello, need help desperately ahead of a demo in a few hours... App was working on my test device fine last night. Added some data (as I always do) this morning and now I get this error during a save operation: Serious application error. Exception was caught during Core Data change processing: *** -[NSCFDictionary setObjec...

Detecting what view is currently being displayed

I have a problem. I am using three20 and am using TTYoutubeView, this problem does not necessarily require knowledge of three20 to fix I think. My issue is, i have a custom drawMethod on my navigationBar, however, when i load a youtube video, i need to tell it to ignore my custom draw method (this isn't a problem, i have a global BOOL t...

MapKit problems with annotations

Hi there Ok, so I've got some issues with my MapKit annotations. First of all, I want a callout for each annotation. I can't find out how to do this at all! :( I have two NSStrings (name of the place and a short description). Then I need to be able to log the click on the callout - so I can launch a disclosure view. Secondly I want to...

Adding EKParticipants to an EKEvent in EventKit

I'd like to programatically add a participant to an EKEvent on the iPhone. EKParticipant's class reference states "You do not create EKParticipant objects directly. Send attendees to an EKEvent object to get an array of EKParticipant objects.". EKEvent's class reference states that the 'attendees' member (NSArray) is "The attendees ass...

UISegmentedControl with Badge or Highlighting

Occasionally I want to highlight one of segments of a UISegmentedControl, i.e. the third title is "News" and I want to draw user's attention to it. Ideally with a red badge with a number as on the UITabBar - any idea how to achieve this? Feel free to share other ideas as well. I thought about adding the badge as an image just on top of i...

How to get 'heading' info from GPS on an iPhone WebApp

I am making a mobile webapp for iPhone and probably other devices and am able to get the lat/long with a reasonable accuracy but I'm not getting any other values from the phone's GPS. The 'heading' is quite important for what I'm wanting to do. Is there a way for Mobile Safari to give this info or is it not supported yet? I haven't found...

Background Texture Image in iPhone Drawn with Distortion in OpenGL ES

Hello, I'm having a problem rendering a background texture in my iPhone app. The following images show the problem: http://www.tojamgames.com/wp-content/uploads/2010/09/background_layer1.png tojamgames.com/wp-content/uploads/2010/09/IMG_0246.png (can't make this a link, sorry) First one is the correct image, the second one is the on...

Redrawing UIControls/UIButtons on iPhone in BubbleLevel example code

I'm confused about when -setNeedsDisplay should be called by me. As an example, for updating a button with different images between presses (toggling between the two), the example code from Apple shows -setImage being called on a UIButton. There's no call to -setNeedsDisplay that I can find after that, though. So do UIControl methods all...

Three20 - Attempt to Refresh TTThumbsViewController stays stuck on "Loading..."

Hello, I am using a TTThumbsViewController to display a gallery. Users can upload photos to a server and when the upload is complete I post a notification which I receive further up the navigation stack at the TTThumbViewController where I want to reload the gallery so that when the user navigates back the gallery includes their newly a...

Measuring NSString lines, words, etc

Hi, I am trying to calculate the closest text position in a string (text of UITextView) from a CGPoint. I wonder if some methods in NSString are useful for this? I would appreciate a good explanation of the following methods. Because I think they are useful here. I read the docs but I don't really understand what they do ;( NSString i...

EXC_BAD_ACCESS when scrolling TableView

Hi, In my program I'm creating a couple of custom UIViewCells loaded from a nib file: [[NSBundle mainBundle] loadNibNamed:@"CustomCells" owner:self options:nil]; Once they're loaded i set them up and return from the function: if (indexpath.row == 1) { [nibTextInputer setupWithName:@"notes" ...]; return nibTextInputer; } else ...

How to get UILabel (UITextView) auto adjusted font size?

Is it possible to get final font size, after autoadjusting? (property adjustsFontSizeToFitWidth set to YES, and text font size is being shrinked to fit into the label) I am subclassing drawTextInRect in UILabel to put gradient on the text, but the gradient size needs to be the same, as the size of the font. I am not able to get proper s...

Localization - two fr.iproj folders

I'm in the process of Localizing my app ready for the market. I'm going through all the .Xib files and have just found that 2 of the 10 Xib files are in their own fr.iproj folder. I now have two fr.iproj folders. This doesn't affect anything, the app still works fine. I'm just confused as to why there are two fr.iproj folders. There are ...

Not getting retweets in response for statuses/friends_timeline twitter API Method.

Hi I am using MGTwitterEngine & when request for tweets of my followers I am not getting the tweets which are retweeted. According to the twitter documentation : include_rts When set to either true, t or 1,the timeline will contain native retweets (if they exist) in addition to the standard stream of tweets. The output format of re...

How is a UIButton's image set programatically?

How does one set the image of a UIButton from within the code? I try the following but it just leaves the button as a white square. [A1 setImage:[UIImage imageNamed:[NSString stringWithFormat:@"m1.10001.png"]] forState:UIControlStateNormal]; Thanks ...