Alright, I have multiple view controllers / views that contain forms with PickerView's. Because the picker view is being used so often, I figured I would create a seperate view/view controller for the picker view, so I don't have to declare 2 or 3 different picker views in each of the other view's. My problem is, how can I populate the p...
Hi,
on the iPhone I want to check, if a specific file (test.licence) on a website exsists. My approach (so far) was to download the file and check if it exists in my Documents directory. However, if the file does not exists, Apache presents a HTML error page (which I download instead of test.licence). Checking the file size is a fuzzy s...
I have a UINavigationController with 3 levels of hierarchy: Menu->Submenu->Details. Menu and Submenu are UITableViews whereas Details is some custom view controller.
I want to add 'previous' and 'next' buttons in the Details view that will allow me to directly go to the previous and next items from the current Submenu.
For example le...
I am planning to do search on large plists. say around 900 plists with data ranging from 120 to 250kb. which one is efficient for searching large plist ?? core data or sqlite ?
...
My app is ready for OS 3.2, will Apple technically approve my application even if it's not ready for iOS4 ?
...
Hi,
I have a problem I don't understand regarding UIViews and Core Animation. Here's what I want to do:
A small view is presented above a bigger view by putting it as one of its subviews.
When I click a button inside this view, the view should minimize and move to a specified CGRect.
Then the view is removed from its superview.
...
Is there a way to disable object highlighting in interface builder? I am testing out a lot of different colors for an object, but the highlighting is making it a difficult process.
Thanks in advance!
...
This isn't so much a question as a pondering thought - why does NSNotificationCenter throw an exception when it's released? I'm still new to iPhone development, and thus don't know the innards of Cocoa yet, so it'd be good to understand why.
I'm assigning the defaultCenter to a variable, calling addObserver:selector:name:object and then...
Is there a way to load a portrait only view controller in portrait orientation even though the parent view controller (and phone) is in landscape orientation?
This particular UIViewController only fits in Portrait mode (it's a color picker), so the code in shouldAutorotateToInterfaceOrientation: returns YES only for portrait orientatio...
hi guys,
i have a simple UIButton that, once clicked, plays a 1 second sound. i want to be able to click that button really fast and produce that sound as many times as i humanly can.
i currently have this up and running by including the and maybe that is where the culprit is... also, i am digging into apple's references and cannot fi...
Does UINavigationBar retain nav items pushed onto its stack? In other words, after doing this:
_myNavItem = [[UINavigationItem alloc]initWithTitle:@"Home"];
[self.navBar pushNavigationItem:_myNavItem animated:NO];
do I need to release _myNavItem with:
[_myNavItem release];
in order to avoid a memory leak?
Also, how do I find o...
I am using this code...
Reachability *r = [Reachability reachabilityWithHostName:@"www.maxqdata.com"];
NetworkStatus internetStatus = [r currentReachabilityStatus];
if ((internetStatus != ReachableViaWiFi) && (internetStatus != ReachableViaWWAN))
{
UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:@"No Internet Connection" mes...
My app has 3 kinds of objects: A, B and C. Each object is represented by a dictionary like this:
NSDictionary *oneObject = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:i], @"number",
[NSString stringWithString:@"A", @"kind", //this can be A, B or C
[NSNumber numberWithBool:YES], @"used", // YES or NO
...
I'm diving in to 2D graphics programming on the iPad and I want to draw circles where the user touched the screen. Here's my simple code to accomplish this...
View Class
-(void)setTouchPoint:(CGPoint)point
{
touchPoint.x = point.x;
touchPoint.y = point.y;
[self setNeedsDisplay];
}
-(id)initWithFrame:(CGRect)frame
{
self = [super...
I'm trying to add a simple feature to my app, it should simply send a pre-formatted string to another device, very much like WiTap sample code does. It sounds like a very trivial thing to do but I cannot get it to work ;(. How can I modify WiTap to send a string instead of a single int?
Any pointers to good tutorials would be great.
I...
I have an app that works well on iPhone OS 3.0 or higher. How do I support fast app switching in it? It should work as is on iPhone OS 3.0 but support fast app switch on iOS 4.0.
Anupam
...
I have been using the new 'Build and Archive' feature of the latest XCode 3.2.3. I like it.
Now I noticed that it is always disabled for some reason. I can't seem to figure out what I changed to cause this.
Does anyone have any ideas?
Thanks!
...
Hi All,
I'm trying to add a subview on top of a table view but it isn't showing even when i try using bringtofront.
Any ideas?
Thanks!
...
Hi
When I started coding the notifications, they were handled in one of 2 ways.
If the app wasn't open or the phone was locked, the user would get the alert with a "view" button to open the app.
if the app was open, the alert was handled in the app delegate.
Now that I have deployed the app, if the phone is locked, the user recieves ...