I assume that the iPhone Wi-Fi hardware is able to switch between channels, since my WLAN router shows me channel 1 to 13. So that WLAN spectrum must be devided up into those, I think. I would like to observe the signal strength from a specific channel within my app. Is there a way to get this data?
...
I have an Obj-C 2.0 class that has an NSMutableArray property. If I use the following code, then the synthesised setter will give me an immutable copy, not a mutable one:
@property (readwrite, copy) NSMutableArray *myArray;
Is there any reason that Apple didn't implement the following syntax?
@property (readwrite, mutablecopy) NSMuta...
I'm trying to create a picker controller with a 'Done' button positioned just above it, to display over a form that is in another view.
I have created a sub-class of UIViewController and using IB I've added a toolbar and a picker view. This seems fine and by copying the examples in UICatalog I can get it to display the required values a...
Seen this asked before but my example does not seem to work.
const CGFloat *toCol = CGColorGetComponents([[UIColor greenColor] CGColor]);
The array is empty from looking at it with GDB. Any hints?
...
Hi,
I need to add an UISlider control in my iphone application. That should look like the "Slide to unlock" slider which is displayed in any iphone or ipod touch. I am unable to figure out how to do this.
In slide to unlock slider, if we leave the thumbImage in the middle of the slider it comes back to the left side automatically. How ...
I'm trying to figure out the SQLite functionality for the iPhone, and I'm having some problems reading my database file from an overridden UITableViewDataSource function. I am storing the database file location in an ivar (as an NSString) in my application delegate, however when I try to access that string from an overridden UITableViewD...
I have an NSTimer that fires off every second, and on that second I update a UILabel by setting the text property like so:
remainglbl.text = [NSString stringWithFormat:@"%i:%02i", var1, var2];
It works fine, but when I run it in xcode with Start With Performance Tool -> Leaks, it appears that the memory just keeps on climbing and clim...
My core graphics fills are acting strange when the get close together, touching or overlapping. This issue is on the iPhone Simulator and iPhone OS 2.2.
Here we have two labels and a custom view with two CGContextFillRect():
overlap problem
When the blue and red are brought together they develop this irritating .5px merging line.
I c...
I'm using the Texture2D class in an iPhone game using OpenGL ES.
Are their any good tutorials for understanding the Texture2D class?
Specifically I'm looking at the initWithString method for printing text. As the way it is implemented, you get white text when you use it. I would like to modify the method so I could specify the RGB colo...
Hi,
I had a Navigation Controller based application and decided to use tab bars. And in some views I don't need to have a navigation controller assigned to a view controller but I still want to have an "add" button at the right top corner of my view.
What is the easiest view to accomplish this? I tried to add a navigation item to my vi...
I have a UITableViews inside of a TabBarController that are populated with separate arrays of data. Due to web syncing, this array updates, and I'd like to update the table.
Calling:
[self.tableView reloadData]
will reload content in existing cells, but I need to add cells for the new data. It seems that this method is not calling
-...
HI,
New to StackOverflow...
I am using SQLite in an application that I am developing.
I am trying to run a pretty complex query (complex for me!!) and I have gotten the basic results i need but I am stuck on getting over the last hurdle.
I presently have this query that does what i need it to do...
SELECT SUM(activity)
FROM activitie...
I have a few methods inside my view controller that load up for future actions, I call them all within a single method so ie:
- (void) updateSongInformation {
artistName.text = @"Testing";
[self setupEmail];
[self checkStatus];
}
If I take out the last 2 lines, the UILabel is updated instantaneously. Is there a way to r...
I'm still learning about Objective-C memory management. I'm trying to implement several simple classes in an example program that I'm building.
As an example, say I have the following class definition:
#import <UIKit/UIKit.h>
@interface customViewController : UIViewController
{
customObject *myCustomObject;
}
@property (ret...
I've got a custom UIView to show a tiled image.
- (void)drawRect:(CGRect)rect
{
...
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextClipToRect(context,
CGRectMake(0.0, 0.0, rect.size.width, rect.size.height));
CGContextDrawTiledImage(context, imageRect, ima...
I'm just starting to learn the iphone API, and I've done plenty of windows programming, and I'm sure there's a way, given the object passed to an event handler, to identify its object id or tag or something.
I created a series of UIButtons in the interface builder, and each has an object ID.
But I just can't see where in the iphone API ...
I'd like to randomly load images from the user's photo album, but I'd prefer not to have to access an image picker (i.e. I'd like to have the images be random background images). Does anyone know if this is possible?
(I couldn't find any references other than: UIImageWriteToSavedPhotosAlbum )
Edit: I'm trying to do this within an iPho...
I'm using the ibtool to localize my nibs. I run the following command:
ibtool --generate-strings-file MainMenu.strings en.lproj/MainMenu.nib
I then add the generated .strings file to the xcode project so that I can reference and edit it later.
When I do that, if I select the .strings file in xcode, it displays a bunch of upside ques...
Is there a way to programmatically invoke the keypad "click" sound? My app has a custom keypad (built out of UIButtons) and I'd like to provide some audio feedback when the user taps on the keys. I tried creating my own sounds in Garageband, but wasn't happy with any of my creations. If there isn't a standard way to invoke the key cli...
Duplicate: http://stackoverflow.com/questions/772858/validate-iphone-device-ids/774518#774518
Does anyone know what constitutes a valid iPhone UDID?
Context: I am working on some session code for a server that interacts with iPhones, and was going to use the iPhone's UDID as a unique identifier. However, I can't seem to find any resou...