I'm probably just missing something really simple but whenever I add CALayers after the view is visible they don't render. Here's the code I'm using:
[[imageLayers objectAtIndex:0] removeFromSuperlayer];
[imageLayers removeObjectAtIndex:0];
[[imageLayers objectAtIndex:0] removeFromSuperlayer];
[imageLayers removeObjectAtIndex:0];
first...
I have a -(void)save method that is called when a user clicks a navigation bar button. In that method is the following NSTimer:
[NSTimer scheduledTimerWithTimeInterval:.25f target:self selector:@selector(flashBackgroundRed) userInfo: nil repeats: flashRepeat];
The timer repeats 4 times since the flashBackgroundRed keeps a count and s...
Hello,
I would like to add a script that zips the executable after my iphone app is done building. I've tried doing this by adding a Post Build script to the target. However, in the build process, the code-signing procedure occurs after the build scripts are run. Therefore, the app bundle that is zipped is useless for itunes submission....
I'm currently polling my CFReadStream for new data with CFReadStreamHasBytesAvailable.
(First, some background: I'm doing my own threading and I don't want/need to mess with runloop stuff, so the client callback stuff doesn't really apply here).
My question is: what are accepted practices for polling?
Apple's documentation on the subj...
I have a Navigation-Based Application that shows a TableView where you can select a cell and it brings you to a "Detail View" for that cell. I want this view to then have a TabBar where I can select between 3 subviews. I have found several solutions online for this but none are very helpful. Is there a tutorial for this specifically or i...
It seems the iPhone Navigation Bar title color is always white. Is there a way to change it to a different color?
I am aware of the navigationItem.titleView approach using an image. Since my design skills are limited and I failed to get the standard glossy. So I prefer changing the text color.
Any pointers would be much appreciated.
...
Lets say I make an App that enables users to make short notes and write things down.
Is there Core Data on iPhone OS too?
Or how else would you save that data in iPhone?
...
HI people :)
Is there an easy way to disable a UITextField in code?
My app has 12 UITextFields that are all turned on by default, but when a change is detected in my Segment Control I want to disable some of the UITextFields depending on what Segment the user picks.
Just need to know how to disable it or make it non-editable?
Thanks
...
I want to split a long string received from a server to a few substrings. The separate characters are different.
Are there any sample code for method: componentsSeparatedByCharactersInSet? Or may I ask a simple code to split "A~B^C" to "A", "B" and "C"?
...
I'm working on an iPhone app with only one view, a UITextView, and I want it to launch all ready for typing (with the keyboard activated) but by default it requires the user to first tap the view before the keyboard appears. I've seen this done in other applications but haven't been able to figure it out. Thanks.
...
I've seen it on a previous app (forgetting the app name), where you could lock the current orientation of the screen.
Is there an easy way for this to be done, for example, simply using a button.
...
Hi,
I want to remove the current subview (added atIndex:0) from my root view controller and insert a new view in its place.
Currently I can only find code snippets that show unloading a view using removeFromSuperView, which requires you to know what viewcontrollers view is currently loaded.
The only other thing to note is that I have ...
I'm interested in developing software for the iPhone camera, but I don't currently own an iPhone and don't really want to pay for service. If I were just doing general app development, I'd probably just pick up an iPod Touch, but the Touch doesn't have a camera.
I know I can walk into the AT&T store, buy an iPhone and immediately cance...
Calling [self.tableView reloadData] works fine when adding a new row or deleting one. When deleting all rows and wanting to see an empty table, reloadData has no affect. All of the phantom rows are still there until the app is relunched. I'm doing this on the RootViewController, which is a UITableViewController. Is there another way ...
When using a UITabBarController, how do you get the size of the tab bar at the bottom ?Similarly, how do you know how much room you have inside the tabbed-view for your content? I see a lot of examples of people sizing their tab child views to [[UIScreen mainScreen] applicationFrame], which can’t be correct because the tab bar takes up ...
I am developing my first iPhone application, and I have made it past the "machinery" and now I am wrapping up fit & finish details.
I have a view that slides in from the bottom of the screen for my settings pane. The view itself has an opacity of 0, and has a UIImageView view inside of it with a PNG creating the actual background for th...
I'm working on an iPhone app that we're localizing in both English and Japanese for our initial release. We frequently call NSLocalizedString() to load the appropriate localized string for display. Is it generally better to save the localized strings in instance variables for the next time we need them, or am I micro-optimizing here an...
I appear to have some overzealous releasing going on in my obj-C app - getting error message "-[myobj release]: message sent to deallocated instance 0x5633b0". I know the class of the object instance causing the problem, but this class is used all over to create many instances.
My thought is I could put some logging in the init method ...
Hi all,
I was wondering if anyone could provide a code example for creating an
album? The feature is not implemented in the example code and I am
having trouble implementing it. Here is the code that I have so far.
GDataServiceGooglePhotos* service =
[[GDataServiceGooglePhotos alloc] init];
[service setUserCredentialsWithUsername:@"myu...
I've got XCode 3.1.2 on OS X 10.5.5. I have an iPhone project that builds fine but the debugger will not hit any of the breakpoints I set. I've tried all the standard fixes that I find on the net:
I've turned off 'Load Symbols Lazily' in XCode preferences
My active config is Debug
Optimization level is 0 in build settings
I've cleaned ...