UITextAutocorrectionTypeNo didn't work for me.
I'm working on a crossword app for the iPhone.
The questions are in UITextViews and I use UITextFields for the User-Input of each letter.
By touching a question(UITextView), the TextField for the first answer char becomesFirstResponder.
It all works fine but the UITextViews are still spell...
Hi all,
I m using NSURLRequest to get and post data from server.
but after processing returned is in html format how i parse it.
Untitled Document
30
please give any refrence.
i want use 30 in my code.
...
How can I find the location of a specific character in an NSString?
I have tried this but it returns an empty range (I want to find the location of the '?'):
NSRange range = [@"This is a ? test to see if it works" rangeOfCharacterFromSet:[NSCharacterSet characterSetWithCharactersInString:@"?"]];
...
Say I have an array with objects, 1, 2, 3 and 4.
How would I pick a random object from this array?
...
hi all,
I am beggainer developer of iphone application so far i have develope a single iphone application which is not so bad Click here
now I am developing iphone application for a website which is Clone of youtube.
i have done the following task so far.
videos are displayed in three categories i.e Latest,all,Feature with the he...
Basically I'm trying to find a solution to my issue with sharing an object. I've had a look at SpringBoard's implementation and it looks as if SpringBoard is providing a framework which can be used to retrieve SBDisplay objects (which are basically CALayers).
I know this specific issue is related to iPhones, but I also know that this is...
Hi everybody, I need to understand something about NSManagedObjectContext update.
I have a UISplitView with a UITableViewController on the RootView and a UIViewController on the Detail View. When I tap in a row with data, I load some data into labels and a UITextView where I can update that field:
- (void)textViewDidEndEditing:(UITextVi...
I want to know what is the difference between @synthesize and @dynamic? I read about them in the documentation but could not glean too much from it. I just want a simple explanation for it.
I will be greatful for any help.
...
I'm using an UIScrollView and I have an image that indicates to the user that there is more content that they can scroll through vertically. I would like this image to be hidden when the scrollview is all the way at the bottom. Is there a way to do this? Would I have to subclass UIScrollView and make my own?
...
Hi, I call a function with performSelectorInBackground, and in this function, I declare
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
at the beginning
[pool release];
at the end
But in the console, I have this message:
2010-07-23 10:58:30.277 ProjetMission[5914:6913] void _WebThreadLockFromAnyThread(b...
I am detecting if the user has pressed down for 2 seconds:
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc]
initWithTarget:self
action:@selector(handleLongPress:)];
longPress.minimumPressDuration = 2.0;
...
I am getting buffer with its length in a function
(void)putEncodedData:(void *)data ofSize:(unsigned)size
I want to create a custom class for this buffer data with name AudioData with variables data,size . How to set its @property attribues ? Please help me. Thanks in advance
...
Hi all,
So far I've managed to create this method for inserting into a SQLite database on the iPhone:
- (void) insertToDB :(NSString *)Identifier :(NSString *)Name
{
sqlite3 *database;
if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK)
{
char *sql1 = "INSERT INTO table VALUES ('";
const cha...
I'm trying to use a table view inside a modalView and for some reason, despite doing this in IB:
http://mike-pulsifer.org/images/IBissue1.png
and
(same location as above) IBissue3.png
I get this instead:
(same location as above) IBissue2.png
Any thoughts as to what I did wrong?
Thanks
...
Within my application I have 20 or so ViewControllers and Xibs that the user should be able to access. The problem is after looking at 5 or so of them the application crashes due to lack of memory. I have released all memory that I have allocated within the ViewControllers so I can only assume it's because its holding the memory of so ma...
Hi guys
I have a question, I can't get my sqlite database to work/open on an ipad device. Everything works fine on the simulator but not a real device. I put MODE to NO when i want to test on a device but it fails to load.
sqlite3 *database;
if (MODE) { //Simulator
result = sqlite3_open("/Users/userID/Myapp/VRdb.sqlite", &datab...
In porting a Java program to Cocoa, I've come across the program using java.io.Reader and its subclasses. I'm not very familiar with what they do, so I can't find a good replacement. Does anyone have any good recommendations on replacements or do I have to rewrite it?
...
I am trying to create an NSArray of Strings from a text file.
Here's the code i've been using:
NSString *title = @"facts";
NSString *type = @"txt";
NSString *seperation = @"/n";
NSMutableArray *factArray = [[NSArray alloc] initWithArray:[[NSString stringWithContentsOfFile:[[NSBundle mainBundle]
...
Hi I have a json string converted unsing the JSON framework into a dictionary and I need to extract its content. How could I iterate to the nested dictionaries? I have already this code that allows me to see the dictionary:
NSDictionary *results = [responseString JSONValue];
NSMutableArray *catArray = [NSMutableArray array];
for (id k...
I am working on an application that needs a method to be called at a certain time (15 minutes past the hour to be exact). Is there a way to make this happen without consuming a ton of CPU and battery life? I've tried searching and just can't find an answer anywhere. Any help is appreciated. Thanks!
...