iphone

Is it possible to determine how the app was built?

Is there any way to determine in code whether the app currently running is a developer, ad-hoc, or app store build? ...

IBAction being called NSCFDictionary and crashing app

I have an NSObject set up to control various elements on my screen. I initialize the class inside my View Controller like this: self.pageSetupClass = [[PageSetup alloc] set:self.pageID]; In IB I have added my NSObject object and linked a button to an IBOutlet on it. I've also linked it to an IBAction found in the object. When I cli...

Iphone image paging

I would like to create a photo paging/scroll control. The control will display three images with which the user can horizontally scroll left and right. The centre image needs to appear in the foreground with the other two (left and right) appearing to be in the background. So, to achieve this, the centre image will need to scale up a...

Post Twitter message from iPhone app with OAuth

Hi, How can I post a message on Twitter from my app using OAuth authentication? I'd like to post an invariable message with a variable link... How can I do this? Any source? Any tutorials? Thanks a lot! ...

Missing UITableView after swapping in a UINavigationController

Hi all, I've been working on a simple iPhone app for a couple of days now, and haven't been able to wrap my head around quite a bit of the interface. Specifically, I've got a main menu view with an ImageView and a couple of buttons that will eventually swap out to other views. In addition to the main menu, I've got a UIViewController ...

How do you step in/out/over the Xcode debugger via Applescript?

I am developing an iOS application. I spend a lot of time in the simulator and it would be really helpful if I didn't have to switch back to Xcode to access the debuggers step in/out/over/continue controls. Is there a way to do this without Xcode being the application with focus? (I know about the mini debugger, but that doesn't have st...

calling methods across view controllers

My question is about the best way to implement passing of information between UIViewControllers. If I have an application with 2 ViewControllers and for example a user selects an item in ViewControllerA which should then show the item and more details in ViewControllerB. What would be the best way to implement this? via the appdelegat...

iPhone App view fails to load in iPad but loads in iPhone simulator

I am simulating an "iPhone-only" app in iPad. The binary simulates fine in the iPhone simulator, but when attempting to simulate in the iPad, the initial background image appears, but then the screen just goes black. (Xcode v4.1, SDK 4.1) The app has only one view, which is controlled by a single custom UIViewController. (SoloViewContro...

How to add a Subview using [self.view addSubview: myView] where myView is subclass of UIView?

Hello everyone, In my Project, I have a customised @interface GraphView: UIView. Hence GraphView is a subclass of UIView and is meant to show a graph. Then, I create a new View Controller called Summary using a NIB. In the Interface builder, I just add a UIToolbar at the bottom of the View. In the implementation of Summary, in the vie...

Will using three20 make my app slower?

I want to use three20's TTThumbsView & TTPhotoView to build something like Grindr. Instead of (1) subclassing these classes, I'd prefer to (2) analyze them and build take the necessary code & tweak it accordingly. Why? Because my concern is that option (1) will increase the download size of our app & slow it's performance. (Another thing...

UIButton in CALayer

How can I add a UIButton in a CALayer and hookup the touch event? ...

Detect the letter being touched...(CCBitmapFontAtlas)

I usd the CCBitmapFontAtlas to display a string and it works fine: label = [CCBitmapFontAtlas bitmapFontAtlasWithString:@"RBT" fntFile:@"bitmapFontTest.fnt"]; [self addChild:label]; CGSize s = [[CCDirector sharedDirector] winSize]; label.position = ccp(s.width/2, s.height/2); label.anchorPoint = ccp(0.5f, 0.5f); Now ...

iPhone UIFont boldFont With name

Hi, I have looked at the headers for UIFont but it has all class methods and only one instance method and some useless properties. I would like to know how to set the font to have a font name, and bold font weight kinda like [[UIFont alloc] initWithFontName:@"Courier New" weight:@"Bold" size:14];. Thanks for any help in advance! ~Thommy...

What is the smallest audio file format?

I know this is not a specific programming question but I hope someone can give me a suggestion. My applications (iPhone and Blackberry applications) use a lot of audio files. I need a solution for my applications in order to save some spaces. Is it right that .aac is the most suitable audio format for iPhone? Is it the smallest one? It...

UIButtons in a UIView

I have a UIScrollview with an IBOutlet mapped to ganttScroller. This UIScrollView has a UIView in it. I made the UIView in IB and its width is 100. I then start to add buttons to that UIView (mapped via an IBOutlet scrollContent) float test = [scrollContent frame].size.width; for (int i=0; i<15; i++) { UIButton *showButton = [U...

Twitter Trends on iPhone app - iPhone Developer

Hi everyone, I am trying to display trends from twitter on a certain topic in my iphone app such that users can see what people really say about a topic on my app. Has anyone tried this before? Is this possible. I found twitter widgets that can do this but only for websites. Praveen ...

Animaton like iPad Photo APP

Hi All, I am implementing photo gallery functionality i my iPad app . I want to display Photo gallery like iPad Photo app gallery. is there any external library or sample code available to do this ? thanks!!! ...

How to recreate the UITabBarItem image filter?

Hi, I'm writing a custom UITabBar replacement, and I would like to know how to recreate the filter that the built-in implementation does with the UITabBarItem image - that blue shining on selected tabs and gray gradient on unselected ones. I guess it's a matter of using the source image alpha value as a mask and overlay it with a pre-ma...

How to disable UIBarButtonItem?

I have a UIBarButtonItem that just doesn't want to get disabled. Short version: when I call [myBarButtonItem setEnabled:NO]; Nothing happens. myBarButtonItem is an IBOutlet in myVIewController. myViewController has been added as an object to MainWindow in Interface Builder. The myBarButtonItem outlet has been connected to the BarButt...

How to Use ASIFormDataRequest to http post array of NSDictionary objects

Hey, I need to make a HTTP POST request with an array of NSDictionary objects. When I do this, however, I notice on the server side that the NSDictionary object does not get deserialized to a hash. It gets deserialized to a string - which is not what i want. This is how I send the parameter from the client (IPhone) side: ASIFormDataR...