As a test, I'm doing the following as the first line in applicationDidFinishLaunching:
NSArray *list=[[NSArray alloc] initWithObjects:@"Andy",@"Erik",@"Aaron",nil];
After the line runs, I have zero objects in the array. I'm doing this further down the code path but wanted to eliminate any influence to make sure my syntax is correct. ...
In iPhone Developer Program Portal, there's a video to demonstrate how to create a development certificate and assign a private key
Now I have finished the development process and starting to distribute
I have created a "Distribution Certificate", but how do I assign a private key to this certificate?
As it got the "CodeSign error: c...
I'm developing on the iPhone and I'm missing something about storing objects in an NSMutableArray - what am I doing wrong and how should I approach this?
The relevant sections of the code are
I have an object, Entity, defined which inherits directly from NSObject. In my class GLView I wish to define an array of these - so GLView.h
@...
iPhone can determine WiFi station in network?
And also MAC address for that WiFi station i want to retrieve.
So can u help me?
...
I want to make an app where every single item is unique. I could not find out much information about the Store Kit in iPhone OS 3.0. Do I have to upload all these download-items to the App Store? Or can the download be made from my own server?
Example:
I have 10 items in my app that people can buy. They are highly exclusive, so the one...
I have a view derived from a UIScrollView controller that I use to page through images in a library. That works fine.
I overlayed a UIView on the right side to handle touches for scrolling quickly through the list of images. My problem is that if I pass the touches through to either 'super' or 'nextResponder' they never make it to the ...
Hi,
i got a news page (a view) at my application and it has news' image and text. Text is in a UITextView and i want my text to start next to image and when the image ends continue from the down of the image, like the text is surrounding the image. i tried autoResizingMask but as i ve understood it is for the relations between subview a...
I have a way of hiding the back button used by the navigation controller. It's set by the previous controller, not the one managing the current view, and that makes it tricky to get to. I needed to do this in editing mode so that I could prevent the user from navigating away from the screen.
if(self.editing) {
// Get rid of the back...
When I first started this iPhone app, I was still a beginner so I was taking code from samples.
I have 4 Views (UIView) with 4 View Controllers (UiViewContorllers). They all sit on the same level in Interface Builder.
UiViewA is the main Menu, and it has buttons that when pressed loads ViewB,C,D via addSubView:ViewB(c/d/etc) . I am run...
This might be trivial for some of you, but I have two screenshots from the Lose It! app in which I'm curious how two different screens were put together.
The first: http://dl-client.getdropbox.com/u/57676/screenshots/loseit1.jpg
That middle graph which shows the statistics chart. Is that a custom image being drawn on top of with Core G...
Is there a way to get access to the up/down arrows used in the Mail app and implement them the same way?
...
Hi all, I'm trying to get to grips with Cocos2d by trying to accomplish simple things. At this point, I have a scene, that scene has a background sprite, and a Layer. I'm trying to draw onto the Layer uding drawLine. Here's by current attempt.
@implementation MyLayer
-(id)init{
self = [super init];
if(self != nil){
glColor...
I'm trying to send an authentication string via cookie in a NSMutableURLRequest. I'm trying to create the NSHTTPCookie through
+(id)cookieWithProperties:(NSDictionary *)properties
But nowhere have I been able to find how to specify the properties other than the simple key-value pair I have for authentication. When I only use my key-v...
Hi all,
I'm slowly picking up Objective-C and the iPhoneSDK but I'm having some problems getting my head around the MVC pattern.
I'm fleshing out a game which I hope will have screens like a splash screen, title, help etc. What I'm currently doing is creating a new UIViewController and a new nib for each of these screens, is this the r...
I have a method that I need to repeat until a certain condition is met. I am using an statement like:
if (condition is not met){
run this method again
}
else {
}
But I don't know how to 'run this method again'. The method is called runAction so i tried [self runAction] but it caused a runtime error.
Any help appreciated.
Thanks
...
I would like to conditionally include code for an iPhone app depending on which version of the SDK I'm compiling against. On Mac OS X, there is the MAC_OS_X_VERSION_MIN_REQUIRED preprocessor macro which gets set to the value of the MACOSX_DEPLOYMENT_TARGET build setting by the compiler. Is there an equivalent on the iPhone?
Update:
I...
Is there a straightforward way to clean up the directory where xcode deploys an app when building for the iPhone simulator? I have a sqlite database that gets copied into the Documents folder on startup if necessary. The problem is that I might change my schema, but the new database won't get copied, because one already exists.
Ideally...
I'm writing an iPhone native app using the JSON framework.
My app is accessing web services using JSON. The JSON data we send has nested objects, below is an example of the data served up:
{"model":{"JSONRESPONSE":{"authenticationFlag":true,"sessionId":"3C4AA754D77BFBE33E0D66EBE306B8CA","statusMessage":"Successful Login.","locId":1,"us...
Hi,
I'm writing an iPhone app that needs direct access to the camera. Since it is in-house, I have no qualms about using the full set of headers and private frameworks.
I included and the PhotoLibrary framework in the application. It compiles for the 2.0 firmware, and I can put it on the device and run it. As soon as it is started, ...
Hi,
In my own iPhone Application I have used a number of nsstring variables to store values.But sometimes its value become Invalid!!!!Can anybody know what may be the reason? Or tell me about the situation when a nsstring variable becomes Invalid??
Thanks in advance,
Syam
...