I am loading some info from a server. I have created a separate method to do this. I am then calling [self myCustomMethod] to run the method. No matter where I call [self myCustomMethod] (initWithNibName, viewDidLoad, viewWillLoad, viewWillAppear, viewDidAppear), the custom method is getting called twice - what's the deal?
...
Edit Reposting... I accidentally marked my previous question as "commuity wiki" and didn't realize that answers to wiki posts don't generate reputation.
I"m adding a UITextView to a UIAlertView with the following code:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Enter Name Here" message:@"this gets covered!" delegate:sel...
I'm doing the following and always get green pins:
pin.pinColor = MKPinAnnotationColorRed;
[self.mapView addAnnotation:pin];
[pin release];
pin is of type "NSObject ". All pins come out as green. Should I be doing it differently?
...
Pretty simple question: when doing some pretty intense drawing with CoreGraphics on the iPhone, how can I specify the pixel format to get optimal performance? Is the format that I get from the context via UIGraphicsGetCurrentContext per definition the best one? I know that RGB565 is supposed to be the fastest to use in OpenGL. Does that ...
Everything works fine on the simulator, but I gete EXC_BAD_ACCESS when I try to load my app on the device. I've put in a bunch of NSLogs to try and catch where it happens, but the log statements are never reached. Also, the UI doesn't load. So, seems the problem is happening before any of my code is reached. I tried a clean build, no luc...
I'm attempting to save a c-style array of Vertex3D structs to an NSData object and get them back when reloading the app:
NSData *vert = [NSData dataWithBytes:&vertices length:(sizeof(Vertex3D) * NUM_OF_VERTICES)];
This data is then saved and attempted to be read back into my c-array thusly:
vertices = malloc(sizeof(Vertex3D) * NU...
I am receiving a "CoreData could not fulfill a fault for ..." error message when trying to access a new attribute in a new data model. If I work with new data I'm ok, but when I attempt to read existing data I get the error. Do I need to handle the entity differently myself if the attribute isn't in my original data? I was under the impr...
I am working on an iPhone app for a client that needs to be able to manipulate directories on an arbitrary FTP server.
Does anybody know of any FTP libraries, frameworks, sample code that can remove directories from an FTP server?
NOTE: I have thoroughly researched CFFTP and the SimpleFTP Sample code provided by Apple and it only suppo...
Hi
I need to determine if certain system settings have been set on the iphone. i.e. Whether or not particular sounds are enabled/disabled so I can decide whether or not to play sound in my own app. Is it possible to read the system settings, and if so, how?
Thanks
Fitto
...
NSUInteger wordInt = sentence.length;
I want to add 1 like this -> wordInt = wordInt + 1 ;
But It doesn't work. I don't know....
Please!!
...
I would like to have a UITextField which aligns to the bottom and to the right. I would like the majority of text to be on the bottom line with putting extra words on the next line as needed. I have been messing around with different layoutSubviews implementations to achieve this functionality. However, the text always fills the top l...
Hi All,
I have a TableView with custom TableCellViews that has UILabels and UIButtons on it.
when one of the buttons is taped I want to show a "tooltip" describing the text of the button.
Most everything is working except for when I try to convert the center coordinates of the UIButton to the coordinates of the rootView which is a UIV...
Hi, I'm trying to save the contents of an UITextView into a NSString which I will somehow persist later.
The problem is that the UITextView "text" property doesn't save all the rows in the textView (after touching "return"). I tried print the TextView object and the textView.text, and they're different.
Does anybody know how (after edi...
Hi,
I'm searching for a way to create a menu in an iPhone app that allows buttons to rotate around a center point. To put this in visual terms: the buttons would be planets and the center is the sun.
this would allow the user to 'spin' the buttons around the circular path.
** an actual example of this would be the Poynt menu for the...
Hello,
I am trying to work with a UIImageView programmatically and can't get it to appear on the screen. In my header I have the following lines:
@interface myClass : UIView {
UIImageView *imageView;
}
@property (nonatomic, readonly) IBOutlet UIImageView *imageView;
Then in my viewWillAppear I have the following:
self.imageView...
I'm working with a C++ audio library in an iPhone app. Is there any Objective C / Cocoa memory management infrastructure I can use for my C++ objects, or do I need to just read up and learn C++ memory management?
...
hello all im trying out the chapter 10 example on push notifications. dont know if anyone has read it, its a really great article on push notifications. the code seems fine, the only problem i have is when i use
NSString *registerResult = [NSString stringWithContentsOfURL:[NSURL URLWithString:getURLString]];
it give me a warning that i...
I've done some reorganizing of my project recently and now I'm not seeing my tab bar controller, but its first view controller's view is appearing. Here's a breakdown of everything that happens prior to the problem.
App Delegate loads FirstViewController with nib. FirstViewController loads the application data from my server and then ...
Steps to reproduce:
1. Create a Tab Bar Application called "TestApp"
2. Add new file, a UIViewController subclass with a XIB user interface called "Table"
3. Open up MainWindows.xib, click on the Second tab bar item and in Inspector change the NIB Name from "SecondView" to "Table". Save and close.
4. Open up Table.xib and drag a TableVie...
I have this strange (short) flickering when pushing a new viewController which contains a UIView > UIWebView.
Inside the controller.m, which contains the UIWebView, I have this code setup for the webView:
//EXAMPLE 1
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path];
NSString htmlData...