I have a UIPresentationFormSheet (contains a textview) that appears in the center of the screen when I am in vertical orientation. When I dismiss the modal view, it disappears fine.
When I am in horizontal orientation my modal view does not appear in the center of the screen. I have to dismiss my keyboard for the modal view to appear in...
If I've got a plist set up like this
Key Type Value
Root Array
Item 0 Dictionary
-Title String Part One
-Description String Welcome to part one. Have fun
Item 1 Dictionary
-Title String Part Two
-Description String Welcome to part two. Fun too.
Item 2 ...
Hi all,
I'm sorry if I didn't explain my problem well enough in the title.
In my application, I'm using a small subview to create a very basic calculator on the top side of the screen (I just have an UITextField to show the operations and two buttons). Instead of using a custom keyboard for it, I want to use the standard iPhone number...
I tried to assign a managed object (C) with its property another managed object (B) (a one-to-one relationship) in which this other managed object (B) has a to-many relationship with one other managed object (A). There is an error from this assignment in which I copied as follows:
#0 0x020e53a7 in ___forwarding___
#1 0x020c16c2 in __f...
I have a UIPickerView with a variable number of components to display. In its contoller i have this -pickerView:withForComponent:
- (CGFloat)pickerView:(UIPickerView *)pv widthForComponent:(NSInteger)component {
CGFloat f;
if (component == 0) {
f = 30;
} else {
if ([componentsData count]>2) {
f =...
Is it possible to add a feature to record the game play within your game without eating up too much memory ?
I want to allow the user to save there game as some sort of video file if thats possible ?
// Edit - made things easier to be more relistic//
The idea is that the user can use the app to change the textures within a pre-animate...
Hi,
I have a problem with NSMutableArray.
In my program i have a lot of variabile "CFSocketRef".
i want to save this in NSMutableArray but i can't.
Can you help me?
Thank and sorry for my english XP
My code:
CFSocketRef socketAccept;
NSMutableArray *arrayIP = [[NSMutableArray alloc] init];
self.socketAccept = CFSocketCreateWith...
I need to be able to send text from the clipboard to an application I'm writing (in Objective-C) via AppleScript. Obviously I need to make my application scriptable (I'm currently reading the Apple Docs about this) but is this possible/easy-to-implement?
...
I am teaching myself Objective-C utilizing a number of resources, one of which is the Stanford iPhone Dev class available via iTunes U (past 2010 class).
One of the home work assignments asked that I populate a mutable dictionary with a predefined list of keys and values (URLs). I was able to put the code together, but as I look at it,...
I have a UITextView on a View that becomes the first responder.
When I embed the UITextView inside of a UIScrollView in Interface Builder the UITextView is no longer the first responder. I am not sure what has changed?
I would like the UITextView to become the first responder.
- (void)viewDidLoad {
[super viewDidLoad];
[scroll...
Here I am iterating through an array of NSDictionary objects (inside the parsed JSON response of the EXCELLENT MapQuest directions API). I want to build up an HTML string to put into a UIWebView.
My code says:
for (NSDictionary *leg in legs ) {
NSString *thisLeg = [NSString stringWithFormat:@"<br>%@ - %@", [leg valueForKey:@"narrat...
I want to subclass UITextView, and send a new message to the delegate. So, I want to extend the delegate protocol, What's the correct way to do this?
I started out with this:
interface:
#import <Foundation/Foundation.h>
@class MySubClass;
@protocol MySubClassDelegate <UITextViewDelegate>
- (void) MySubClassMessage: (MySubClass ...
Making progress in my understanding of Objective C but am still somewhat 'stuck' in conceptualizing what a 'ViewController' is.
Coming from java-ecmascript based languages, I understand a view as being the class or template associated with any object you see or interact with (on the display list). And the optional controller, interacts ...
I have a modal view with a textview and a button. When the keyboard is displayed it covers up some of my UI elements. I'd like my modal to be scrollable so that it can be viewed while the keyboard is displayed. How can I do this?
...
Possible Duplicates:
How to convert an NSString into an NSNumber
iphone how to check that a string is numeric only
how do i confirm that a pasteboard string is numeric or not?
...
I have several uitextfields within a view and I would like to disable the uibutton until all the fields have something entered into them. What's the best way of doing this?
Ideally, I'd like to do some basic validation (make sure all entries are numbers) too.
EDIT
Couldn't get the solutions below to quite work. Below is the version ...
Hello,
I'm compairing two strings. There are equal. isEqualToString: returns NSOrderedDescending.
I thought isEqualToString: would return NSOrderedSame. Can someone explain to me why this happens?
example case...
NSString *myString = @"1";
if ( [myString isEqualToString:@"1"] == NSOrderedSame ) {
// is NSOrderedSame
}
Since...
I am attempting to write a Facebook integration in an iPhone app I'm working on. I have it logging in just fine, but I don't like the idea of being able to turn a feature on without being able to turn it off. So, in working on the logout functionality, I have been caught in a snag.
- (IBAction) logoutClicked:(id)sender {
if (fbLogge...
I've got following problem:
I create a new file. Then call my function to reload my fileList with all Files in my Documents directory. After that I fire the dataReload of my TableView. The Problem I have is that my TableView don't shows all files. The existing Files are shown but the new one not, but therefore the last filename is shown ...
We're transitioning to an automated build process for our iphone projects. These projects can be checked out by individual devs, in which case all the API URLs need to point to a certain path. There are also a variety of build environments, each with their own API root paths.
I could probably add multiple, different build targets, and...