I searched long and hard in an effort to figure this out. It took about 4-5 hours before I finally managed to reach a solution. I will be answering my own question in an effort to provide support to anyone who comes to the same problem.
So, I created the application Critical Mass Typer. It is a typing game that utilizes the keyboard as ...
I have a UIImageView object in one of my classes, but I need to set that view from within another class.
How is access granted to that method?
Regards
...
Hi, I had the following situtation, I'm reading and parsing some packets from the network within a separated thread (not the main thread).
After this, I'm trying to put them into a CFWriteStreamRef (created using CFStreamCreateBoundPair, in order to get a CFReadStreamRef that could be able to read the bytes from the writer stream) in a ...
I have a table view managed by a NSFetchedResultsController. I am using the Apple-provided boilerplate code in my TableViewController. My predicate retrieves objects based on their name. Everything seems to work fine when it comes to adding/deleting objects using the 'edit' button. If I programmatically change an object's name, things al...
I have a NSURLCache that simply logs cachedResponseForRequest and storeCachedResponse calls.
It seems that UIWebView will call cachedResponseForRequest for every request, but storeCachedResponse will only be called for the top-level page, i.e. not for any css/js/etc. specified in the html.
Is there any reason why this might be (not) h...
I need to understand this piece better because when I reached that step in the app submission process, my comprehension went to hell.
While developing my app, my bundle identifier was com.yourcompany.${PRODUCT_NAME:rfc1034identifier}.
The instructions say
In the Properties Pane of the Target Info window, enter the Bundle Identifi...
I'm trying to use the following code to persist the current list of local notifications. NSArray explicitly lists the kind of objects it will work with, which implies I can not use this with an array full of UILocalNotification objects. However, UILocalNotifications does implement NSCoding, which led me to believe there must be an easy w...
I am currently doing this:
UIColor *myColor = [UIColor clearColor];
This is great but i would like to specify a certain alpha of "myColor". How would i do so?
...
How can i obtain the text of a UIButton in my
-(IBAction)clicked:(id)sender
method?
Thanks
...
When the app first loads the table and cells are correct. When you rotate to landscape mode the table cells look like they are still set up for portrait mode. When you rotate back to portrait the table cells are set up for landscape mode.
Is there any way to manage this in the code?
Thanks
...
Ok, so I have a UILabel created in interface builder that displays some some default text of "tap to begin". When the user taps the UILabel I want it to trigger an IBAction method:
-(IBAction)next; which updates the text on the label to say something new. It would be really convenient if this allowed me to simply drag a connection from m...
I haven't been able to figure it out, and there are no websites which explain it clearly enough... what exactly are the purposes of @property and @synthesize?
Thanks in advance!
...
Hi all i update to ios 4 but in my app i use :
NSString *connected = [NSString string withContentofURL:[NSURL URLWithString:@"http://myurl.com/myFile]];
but now i get the following :
StringWithContentsofURL is deprecated !
I use this to test if connection is available.
What can i do ??
thanks
...
So I want to fetch a varying number of entities that match randomly generated index numbers that are associated to the entity.
So i get a count of entities in a given set and i generate a random collection of nsnumbers within that range. now i need to pull out the entities whose index match those generated numbers ideally in a single fe...
How can I have a UIView over a view that contains a live view from the camera?
...
I'm currently using json-framework and need some help though parsing some JSON i'm getting from my server. Here is how the JSON looks:
Like I said I already have the json-framework installed but I can't figure out how to actually parse it. Can someone please show me? Thanks!
[
{
"id":"0",
"name":"name",
"info":"This...
Created a new project from the Tab Bar Application template, how can I access tabBarController (which is declared in AppDelegate) from FirstViewController? I'd like to read some attributes in the tabBarController from the view controller. Thanks!
...
I have in front of me two Quartz iPhone apps. In each of them, calls to setNeedsDisplay cause a view to redraw itself. But there is an important difference. In one case (the "Quartz Fun" app from the Mark/Lamarche book "Beginning iPhone development"), the view starts out blank each time. In the other case (the app I am working on), t...
I am trying to get the scroll position of my UITableView, however when I implement any of the UIScrollViewDelegate methods, contentOffset always returns nil for me.
For example:
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
NSLog(@"offset: %@", [scrollView contentOffset]);
}
The log returns as offset: (null) w...
While testing my openGL ES app on the new iPhone 4, it seemed as if the openGL wasn't using all 326 ppi, rather the 163 ppi found on the 3G, because of noticeable pixelation. I realize there are 4 times more pixels to calculate, but shouldn't the A4 chip compensate for this?
I'm sure there is a way to take advantage of the stunning res...