Hi,
I am using Apple's CoreDataBooks sample project as a learning aid for core data.
I modified the app so that when the app loads I show a menu page first - not the Books tableview (RootViewController).
I have done the following:
I created a menu page in interface builder (just a view with a button on it)
The CoreDataBooksAppDeleg...
-(void)connectionDidFinishLoading:(NSURLConnection *)connection {
NSString *theXML = [[NSString alloc] initWithBytes: [myWebData mutableBytes] length:[myWebData length] encoding:NSUTF8StringEncoding];
NSLog(@"%@",theXML);
[self actualString:theXML
extractMyData:@"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelop...
Hi there,
I have my main application delegate which contains a method that returns an object. This application delegate runs on the main thread.
I also have a NSOperation that gets run on a different thread. As well as wanting to be able to call my app delegate method on my main thread sometimes, I also need to call it from my NSOperat...
I've got some C# code that I'm converting to Objective-C. In C# I would call Math.Log(). I'm slowly learning that some people stick to C functions/types and only use NSNumber etc when they need to interop with Cocoa.
Is there an equivalent for ObjC/Cocoa, or do I need to drop into C to do this? I need my code to be as accurate as possib...
Hi,
Consider this pseudo code...
...
// an image is initialized
UIImage *imagePX = [[UIImage alloc]initWithContentsOfFile:... bla bla
imagePX = [self rotateImage:imagePX]; //A
[self doStuff:imagePX]; //B
then I have the rotateImage method...
- (UIImage*) rotateImage:(UIImage*)source {
... rotate the image... draw on context...
...
I am relatively new to iPhone programming and am having difficulty as to where/how to push a selected row's drill-down view from a grouped table view. My top-level table view shows OK. I am putting the code for didSelectRowAtIndexPath in RootViewController.m and am telling it to push a new view onto the stack when a row is selected. Howe...
I have a crash that is happening deep within UIKit for some reason; an EXC_BAD_ACCESS error is happening something like 8 calls deep into a dismissModalViewController call. I tried enabling NSZombieEnabled for my executable, but the console log prints the same error regardless of whether or not zombies are turned on and i don't know whi...
Hello,
I am trying to test In App Purchases on my iPhone and running into a problem where the product IDs I request information for end up being returned to me as invalid product IDs in the "didRecieveResponse" method.
I have:
Created an in store product associated with this app. It's bundle ID matches everything else. It has been c...
Greetings! I must be seeing things. Look at this excerpt from the iPhone OS reference library:
addTimeInterval: Returns a new NSDate
object that is set to a given number
of seconds relative to the receiver.
(Deprecated. This method has been replaced by dateByAddingTimeInterval:.)
However, it is nowhere to be found in the docs...
I would like to create a data grid that scrolls both vertically and horizontally and has sticky row and column headers (so you can scroll the data while still viewing the row/column headers). What is the best way of doing this?
I've considered creating my own custom DataGrid view that handles its own rendering, but this seems like a lot...
Hi,
How do we detect a Tap & Hold on a UITableView cell (with and without disclosure buttons on the right).. ?
...
Hi
I have a UIWebView. In this, i want to catch when the user use the copy menu in order to copy selection into a pasteboard.
Afterwards when the user touch a button, the content will be paste in a mail.
I want to intercept when the user click on copy or cut menu. so i had this two methods :
- (void)cut:(id)sender
{
NSLog(@"cuuuu...
How is the NSLocaleCountryCode determined by the iPhone OS in versions greater than 3.0?
Can it be changed by the user?
...
Hi
Does anyone know what URL scheme Skype supports for making calls from other apps (that should launch Skype and place the call). Thanks
...
When using a plain-style UITableView with a large enough number of cells that the table view cannot display them all without scrolling, no separators appear in the empty space below the cells. If I have only a few cells the empty space below them includes separators.
Is there a way that I can force a UITableView to remove the separators...
Hi,
I am trying to locate leaks using instruments, but the leaks I see there are like the ones in the next picture:
leaks
As you can see there's no information of which line of code is exactly leaking. All leaks I have, around 20, are like this, or in other words, the leaks don't show any line of my code in particular.
The leak...
Hi,
I have dev cert and distibution cert. I am able to build an app to run on my own device and also followed Apple's instuctions to build for AppStore by using Distribution Cert. I also followed Apple's guidance to verify that app was correctly signed by reviewing a build log.
However I still have a question. Consider the following scr...
This is the code of my cellForRowAtIndexPath of my UITableView
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *identificadorNormal = @"Normal";
UITableViewCell *cell;
cell = [tableView dequeueReusableCellWithIdentifier:identificadorNo...
For instance, the app could say something like, "Please wait." or "I'll be right back". A friend asked me if it was possible, and since I don't have an iPhone I couldn't answer the question.
Thanks.
...
I'm using a tinted navigation bar and a tinted global UIToolbar in my iPhone app.
In my info view, I have a button which opens a MFMailComposeViewController, and the toolbar at the top of that view (with the "cancel" and "send" button) is still blue. I'm calling the MFMailComposeViewController like this:
-(void)displayMailSheet
{
MFM...