How to do the documentation in objective C?
Could anyone share the the ways to do the documentation in objective C? Is there any standard way like it is in java? ...
Could anyone share the the ways to do the documentation in objective C? Is there any standard way like it is in java? ...
Hello, Supposing you had a Core Data relationship such as: Book ---->> Chapter ---->> Page Given a Book object called aBook, aBook.chapters will return the book's chapters. But how do you get a book's pages (i.e. book.pages)? And how would you get the pages sorted by a pageNumber property? Thank you! ...
Hello, As the subject says, I have a project based on Apple's TabController template. The problem is that when navigating to Second View in the TabController, the First View's "viewDidLoad" method is called. The second view's method is NOT called. Any idea what might cause this? I would post code but I'm not sure what part might pertai...
Hi All, I am using UIImagePickerController for selecting images from the photo library. But I am getting a message on the console saying "Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations." What is this due to ? Thanks ...
Has anyone had any luck integrating Quick Sequence Diagram Editor with XCode and in particular Objective C iPhone development? I have tried creating sequence diagrams manually with VP Suite and Omnigraffle type applications but as soon as the code changes the diagram is out of date, so the idea of generating it dynamically as the app is...
Possible Duplicates: Objective-C : BOOL vs bool Is there any difference between BOOL and Boolean in Objective-C? I noticed from the autocomplete in XCode that there is a bool and a BOOL in Objective-C. Are these different? Why are there two different kinds of bool? Are they interchangeable? ...
I am trying to improve scrolling performance of a UITableView. I am loading the images using imageNamed: and dispatch_async, but scrolling is very good once the images have been loaded into the cells. I would like to fade in the images only if they are not in the system cache to reduce the jarring effect of the images "popping" into view...
hi, I have a const char *sadgan[4]={"yeksad" ,"devist","sisad","chaharsad","pansad"}; How can I append a sadgan[1] to test in objective c? NSString *myString =@""; NSString *test = [myString stringByAppendingString:sadgan[1]]; NSLog(@"% ? " ,test); I want to write yeksad o devist o sisad o ... ...
I noticed that Cocoa/Objective-C classes inherit and conform from other classes. I understand what inheritance is, but not conformance. What's the difference? Also, is a class like UIView a Cocoa class or an Objective-C class? ...
Hello! I am working on a game that makes use of a save/load feature. I am using a Plist for the data. I have the methods coded correctly... I think? The issue, however, is that when the home button is pressed, and the App re-launched, the saved data automatically appears. What I'd prefer is for the data to be manually loaded via a "L...
Hi, I'm very new to iphone programming. I'm trying to write an application where I can slide one view off the screen composed of a label and an image, and another will appear. However, I don't want any bars or navcontrollers (atleast not visible ones) involved, anyone know how I can just load another view? ...
Hi All, I am running into a very odd issue. I have an app that works perfectly, compiles with no errors, and when launch from springboard loads perfectly. It will load from springboard every time correctly, even if it is running in the background. However, sometime if I launch the app from the recently used app list, by hitting the h...
Totally lost with this one. Here's my code: theColor = [NSString stringWithFormat:@"white"]; NSLog(@"%s", theColor); Which is returing: †t†å I must be doing something stupid, but can not figure it out for the life of me. ...
I'm doing the challenge exercises in Aaron Hillegass' book Cocoa Programming for Mac. What I'm trying to do is have a window resize to twice the height of the width. Here is my code so far. #import "AppController.h" @implementation AppController -(id) init { [super init]; NSLog(@"init"); [window setDelegate:self]; ret...
Hey guys, I looked thru the documentation a bit but didn't see anything of much substance (but I must not be looking in the right place) What are my options if I want to iterate through a user's itunes library meta data? Let's say I want to build an Array of all their song titles. Is this possible with current public SDK APIs? Dave ...
I am creating a custom CCSprite class to display a custom image and set its own position as well as handle other drawing tasks. Currently I have no other code running in the custom class but the initializer, which should set the image file and the position of the sprite. Here is my - (id)init method - (id)init { if (!(self = [sup...
So I've got a function that really helps when I'm crafting device specific URLS but I'd like to place it in a global header file so any class could use it easily - (NSString *)deviceType { NSString *deviceName = @"iphone"; if([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) { if (UI_USER_INTERFACE_IDIOM()...
First one: + (NSDate*)convertToUTC:(NSDate*)sourceDate { NSTimeZone* currentTimeZone = [NSTimeZone localTimeZone]; NSTimeZone* utcTimeZone = [NSTimeZone timeZoneWithAbbreviation:@"UTC"]; NSInteger currentGMTOffset = [currentTimeZone secondsFromGMTForDate:sourceDate]; NSInteger gmtOffset = [utcTimeZone secondsFromGMTForD...
Hi all, i want to sort NSArray of UIImageView according their frame? i try for NSSortDescriptor but when i write key=@"frame" unrecognized selector error occur. please tell me how to sort my array. thanks in advance. ...
sorry i am a new comer,i just want to know how we can make HTTP Client in iPhone,like java we make HTTPClient like httpclient = new DefaultHttpClient(); if(Settingdb.getLocation() != null && Settingdb.getLocation().length() httppost = new HttpPost(Settingdb.getLocation()); i need this code in iPhone (obje...