If I have an NSMutableString such as
NSMutableString *foo = [[NSMutableString alloc] init];
if I nil out the object, foo = nil, does that lower the retain count by 1, thus effectively releasing the memory? Would I need to reallocate foo from the heap at this point to be able to use it?
...
How can I make the background color of a UITextField blink?
...
I made an application that should run constant until I stop it. What it basically does is getting some data from connected another device and send that data to the server periodically using NSURLConnection, and read data from the server periodically and visualize that data as a graph using NSXMLParser.
I ran the instrument to check allo...
hi any one say , how to increase or decrease the UIWebview font size, not using scalePageToFit:NO;
...
I want to add an arrow to the right of each row in TableView on iPhone. Any ideas how to do this?
...
How can you, in the iPhone SDK, programatically access a password protected site that has been protected by .htaccess or access control.
Using NSURLRequest, you can make a GET request from a URL. But if the URL is protected how would you send the username password pair. Also, what if it's encrypted with standard MD5 encryption.
...
How to connect string "Hello" and string "World" to "HelloWorld"? Looks like "+" doesn't work.
...
How do I check if an sqlite query returned anything before I stop looping through results.
//see if there are results and do something if not
while(sqlite3_step(selectstmt) == SQLITE_ROW)
{ /*process on reults */}
...
What's the code to subscribe to an event like applicationWillResignActive in any place in your iphone application?
[UPDATE]
Let me rephrase my question. I don't want to respond to this in my application delegate, but rather listen to this event from another class. Is that possible or I need to pass the event from the application dele...
i want to casting my NSString to a constant char
the code is shown below :
NSString *date = @"12/9/2009";
char datechar = [date UTF8String]
NSLog(@"%@",datechar);
however it return the warning
assignment makes integer from pointer without a cast
and cannot print the char properly,can somebody tell me what is the problem
...
Hi
I want to design an application by using Interface Builder, in Landscape mode. I don't know how to put the controls suitable to the Landscape mode. All I know I m rotating my UIView by using self.transform. I am new in it. So can anyone help me.
...
How to add new templates in Xcode for iPhone application developement?
...
I want to connect to a server using HTTP, send a string to it and recieve the response string from the server. Any ideas about how to connect to server by the url, send and recieve message from it?
...
Hi everybody,
I have a plain UITableView in my iPhoneApp. I would like to change the font size of the header text.
I understand that this is not possible and that I need to create my custom header with my own label.
I just wonder if anybody knows how I can reproduce a header similar to the standard one (using the same background image...
I have a collection of various UIImage sequences I want to animate. It turns out that using a timer and doing drawRect has some perf problems.
My next step was to investigate using UIImageView but apparently that has a memory leak if you update the array of animationImages more than once.
My next step was to look into using CALayer a...
Hi all,
I'm trying to weed my application out of memory leaks. The problem I'm facing is that Instruments is reporting leaks for objects which I have not explicitly allocated myself. Now, I do understand that these objects might be instantiated as a result of some other code I've written, but I cannot find my client-code anywhere in the...
I am looking for a SDK API to retrieve the device's local phone number
from the SIM card. Is there a way to do it? Thanks.
Mike
...
I am working on a number of iPhone development projects and I am starting to refactor code and would like to be able to package it in a library or framework that I can reuse in different xcode projects for different iPhone applications. I looked at the New Project dialog in xcode and the only option I have under iPhone OS is to create an...
I have a fresh iPhone project. When I "Build and Go":
Error from Debugger: Failed to launch simulated application: iPhone Simulator failed to install the application.
Why is that?!
...
Running into the strangest problem on iPhone using jQuery with my WebViewController.
I have a div into which I append content:
<div id="thumbnails">
Here are your thumbnails:
<div id="mythumbs"></div>
</div>
The code looks like:
for (var i=0; i < thumbs.length; i++) {
var item = thumbs[i];
$('<img class="imgthumb" />').dat...