I have not had much time to read through all the documentation for the 1500 more features included in iOS4, so right now I have 2 questions:
If the app is just a usual utility application, what to do to make it "qualified on iOS 4"?
If the app uses a timer to refresh all the items on the screen every one minute (requires redrawing of...
I've got an XIB window that I'm working with in Interface Builder. It has an NSScroller and 4 popups. The controller class has a float and 4 ints.
I bound the scroller to the float and the pupups to the ints, binding the value of the scroller and the selected index of the popups.
When I move the scroller, or change the popup selectio...
Hello,
(For example) I would like to have my background image – a UIImageView – always the same size as the UIViewControllers view.
I am unable to figure this out, but sure it is possible. I'm making some UI Elements which I would like to reuse, and which can layout dynamically depending on how big my view controller's view is. How ca...
Trying to change the selected text background color for an NSTextField (we have a dark UI, and selected text background is almost the same as the text itself), but only NSTextView seems to allow us to change this.
So we're trying to fake an NSTextField using an NSTextView, but can't get text scrolling to work the same.
The closest we g...
I'm looking for a tutorial that shows me how I can create a custom Control for iOS, that draws Graphs. For example, something like in the Stocks App in iOS. Yes, there are many Chart Libraries out there but I find them really complex to learn the code and I just want to learn how I create such a graph myself in Code and how to create a C...
Hello,
i downloaded example from
http://developer.apple.com/mac/library/samplecode/GLFullScreen/Listings/MyOpenGLView_h.html
in files MyOpenGLView.m and MainController.m is method
- (void) dealloc
but when program terminated newer call this method.
I put there my code when program terminated but it isn't executed.
How to make that me...
Im developing a memory game. As i click on a button I want the background to switch. When I click on the card the second time i want the background to switch for a second and then go back to the original (if it wasnt the correct card). But the background of the buttons are not changed until i return from the method (buttonPressed). Why i...
Hello everyone,
Is there a way to load vector graphics into the iPad using cocos(or some other method) as sprites or sprite sheets but leaving the images as vectors and not textures? The reason being is we have an animation that is just way way too big to load in as a texture so we want to scale it down using a vector image.
If this is...
Hi to everybody,
I'm using ffmpeg in the iPhone, reading an wma stream from an mms server, but I want to save the stream to an m4a file using the ALAC encoder in ffmpeg, the problem is that trying to save the raw stream, the stream processed using avcodec_decode_audio2 , the file is not even recognized with the wma format, and obviously...
I'm new on Cocoa OBJC and iPhone dev.
Where to find the default background that apple uses everywhere (like the one on the iphone's default setting app) ?
It's possible to set the image from interface builder or you have to set by line code?
Thanks
...
I was helped here a while ago about loading images from an array, but would like to know the exact details please.
Where does the code go if my app will be as simple as images that load from an array depending on whether the user chose the next or previous button? Does it go in the View Controller class?
What do I need if I literally j...
I'm trying to create a custom UIMenuController and display it in my view. Here's my code:
UIMenuController *menuController = [UIMenuController sharedMenuController];
UIMenuItem *listMenuItem = [[UIMenuItem alloc] initWithTitle:@"List" action:@selector(addList:)];
[menuController setMenuItems:[NSArray arrayWithObject:listMenuIte...
Hi! First post :)
I am building an iPad app which basically has a UITabController which controls and displays 2 UIViewControllers that I set via:
[tabBarController setViewControllers:
[NSArray arrayWithObjects:browserController, videoController, nil]];
I would like to add a 3rd button to the UITabBar that presents a Popover when ...
I'm having an issue trying to use ASIHTTPRequest libraries in my iPhone application.
When I go to compile my project for the iPhone Simulator 3.0 SDK, I get the following error:
Too few arguments to function 'CFNetworkCopyProxiesForAutoConfigurationScript'
After a bit of search around the web I found some indications that it may be...
I am not sure why my UITableViewCell's are repeating after the user scrolls?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
ChartlyCell *cell = (ChartlyCell*)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]...
Im using NSThead and have a loading screen whilst im downloading images form the web to display, whist this is happening, could i stop the UI touch being registered? I have buttons on that view and when the loading screen is up, its basicllya text label which has a slightly transparent background. but if someone clicks on it, it register...
Hi all,
I'm using TouchXML to parse an XML-stream the following way:
CXMLDocument *parser = [[CXMLDocument alloc] initWithXMLString:responseString options:0 error:nil];
[responseString release];
// array holding all the nodes
NSArray *directionNodes = [parser nodesForXPath:@"//direction" error:nil];
NSArray *linieNodes = [parser nodes...
I've got a UIViewController with a xib view that has a button and a table.
Everything is wired up, the data has rows in it etc. But if i click a row and navigate away from this initial screen, then go back, the cell in the table still has the highlighted state on it.
Do i need to implement methods other than numberOfSectionsInTableView,...
A beginner question here.
My goal: to understand the design rationale behind this.
When I created a Command Line tool project that links against Foundation class, xcode generated the following code snippet.
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code...
Early warning - code sample a little long...
I have a singleton NSMutableArray that can be accessed from anywhere within my application. I want to be able to reference the NSMutableArray from multiple NIB files but bind to UI elements via NSArrayController objects. Initial creation is not a problem. I can reference the singleton NSMutab...