xcode

Xcode view file with one click?

Today I just got a new version of xcode, version 3.2.3 and something changed. Now I can't view files in the editor view to the right of the groups and files pane, unless I right click the file and do view as source code file. If I double click the file it opens a new separate editing window. Really annoying stuff. Is there a preference t...

Xcode hot key for 'tab'

Hi, everyone, I want to ask a stupid question. Can Xcode like be the Visual studio, when I highlight the word and press the 'tab' key, the highlighted word will go to the right side and have a 'tab' space, but I am not able to do this in Xcode, do I need to set something? Thank you. ...

Data Formatters temporarily unavailable, not low on memory

I'm running a computationally intensive task that reads data from the viewfinder using UIGetScreenImage and does computations on it, repeatedly. After about 60 seconds (on 3GS) I'm getting a crash every time. But I can't debug it, because I get this: Program received signal: “0”. Data Formatters temporarily unavailable, will re-try aft...

warning: std::binary_function<int, int, bool>::binary_function()has different visibility (default) in static library "*.a"

I define a std::map in static library .a like this ////////////////////////////////////// #import <map> class CCImage; class ImageArray{ std::map<int,CCImage*> mapCCImages; private: int imagesLength; public: ImageArray(); ~ImageArray(); int getImageLen(); bool addCCImage(int key,CCImage * texture,bool replace = true); CCImage *g...

Offline map from sdk

In my application i have a MkMapview and now it shows current location. i have to bookmark some other locations and show that locations even if there is no Wi-Fi connection. How to bookmark that locations and how to display the offline maps? how to save map to cache? is it possible? Thanks, ...

switch to randomly selected view in xcode

utilising xcode using the random function i want to switch to from a view to a randomly selected new view...can some one give me some direction. ...

How to tab between fields in Xcode's Data Model editor

I'm creating a Core Data model in Xcode. Once I've created a new entity, I found that I can add attributes with a key binding (apparently defaults to CMD+CTRL+A). Once I create that new attribute, the focus is on the name -- well and good. But the next thing is to select from among the "Optional/Transient/Indexed" checkboxes, and I can'...

How To change the Tabbaritem Images dynamically In Iphone App

Hellow All, I am working in One Iphone Application that has tabBarController with 4 tabs where each has different Image. The Image for each Tab would be in different color when selected and should not be highlited . That is generally its highlighted the selected tab.. I dont want this can anyone help me Thanks All ...

How to let my application support iOS 4?

I tested my application on 8GB iPod Touch using iOS 4.0(within multitask), it works. But when I change my original source code, and built it in the simulator. The application load, but nothing appear, it all dark. What I should do to solve the problem? I check the console, it didn't show any error msg. Thank u. ...

Getting Values from a CFDictionary

Hello Everyone, I'm new to Objective-C programming and was wondering if I could get some help. I'm trying to access the values from a CFDictionary. I've started by implementing code suggested in this question CFTypeRef r = IOPSCopyPowerSourcesInfo(); CFArrayRef array = IOPSCopyPowerSourcesList(r); CFDictionaryRef powerDic = IOPSGet...

iPhone icon size

Hi I am developing an application for iPhone to support multiple devices, iPhone 2-4. I had an issue with the app icon as it was shown pixelated in the iPhone 4 simulator so I have used a new image with higher resolution (300 x 300) to be precise. On the simulator its showing fine for both iPhone 4 and the iPhone device simulators. Howe...

Dynamically created UIView Objects

Hi all: I have a predicament, in as much that I need to create an arbitrary amount of UIView Objects. I have an NSArray and what I need to do is create UIView Objects for the number of items in the array, so I got an int from the [NSArray count]; method, so I know the number of objects needing creating, but the way to implement this has...

How do I add a UITtoolbar to my main view.nib?

How do I add using the InterfaceBuilder? ...

Errors with iAd when using the sample code.

Hello everyone, I am using iAd code implementation from the iAd class reference: I have implemented the iAd delegate, however I get some errors when I directly copy and paste the code from the website. I have created new projects and tried entering in the methods from the website directly, but I still get the same errors. You guys can...

NSDate dateFromString returns null

I am saving a date that has been converted to a string to a plist when the app exits. When the viewDidLoad is run I am trying to read the string back in and convert it back to a date. The string saves to the plist and reads in correctly but will not convert back to a date. I am using the standard format given by the NSDate date command. ...

iPhone animated view overlay

I have a few XIBs that are my pages, and i'm using presentmodalviewcontroller to switch between them with some buttons. Now I want to use other buttons to pull up overlays on those views. How I have it now is I have a button which simply toggles the "Hidden" property on the UIImageview. What are options for animating the show/hide fun...

High-res UITabBar icons display at full size on low-res screen

I'm in the process of upgrading my iPhone app to high-res graphics, and I've run into some problems with older devices. The situation involves my UITabBar icons. Have a look: The top screenshot looks correct. It was captured on the latest generation iPhone (new screen) running OS4. However, the second screenshot is completely wrong. T...

Xcode Interface Builder wont start

Hi, complete iPhone Apps developer newbe here :) I have a relatively confusing problem: namely, I created several empty Xcode projects and ran the iPhone and iPad emulators just to see what happens and everything is fine, empty, but fine. However, then I decided to actually add some content BUT when I double click my .xib file nothing h...

Memory issues with NSUserDefaults

I have spent hours trying to get my project working and I just can't get it working. Basically, I'm trying to use NSUserDefaults to save a custom object when the user hits a save button and load all the data up when the app loads. If there is no previous NSUserDefault saved, I want to set some defaults. In the end, I am getting EXC_BA...

Organizing C code in my Xcode project

I want to include a few straight C functions in my Objective C project. Simple stuff like this: CGPoint vectorSum (CGPoint point1, CGPoint point2) { return CGPointMake(point1.x+point2.x, point1.y+point2.y); } What is the best way to keep things organized? In particular, I notice that when I go to create a .c file, it gives me ...