Hello all,
I am having some problems trying to figure out the best way of generating a random time of day. For instance, if I want to choose a random time between the hours of 9am and 5pm, what would be the best way with the least amount of overhead on the device? I guess I need someone to point me in the right direction. Thanks!
...
Hello,
I want to develop an application for iPhone. I have developed some apps before. I need to change DNS settings. Is it possible and how can I do and if it's possible, is it applicable only to wi-fi ? I want to change it for wi-fi and 3G, EDGE, etc.
Thanks.
...
I've tried to move a UIButton up and down in a menu.
The problem I've got with the following solution is that the timer is not accurate. Sometimes the Button is moved up 122px, sometimes only 120px. How I can fix this?
-(IBAction)marketTabClicked:(id)sender {
if (marketTabExtended) {
NSLog(@"marketTabExtended = YES");
...
I'm interested in learning about what additional features and APIs an app has access to when an iPhone is jailbroken. Can someone provide me with some basic resources to learn about this? I would be most interested in:
documentation on the private APIs
filesystem layout
app configuration, e.g. how did WinterBoard replace SpringBoard? A...
I'm using the JSON Framework addon for iPhone's Objective-C to catch a JSON object that's an array of Dictionary-style objects via HTTP. Here's my connectionDidFinishLoading function:
- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
[connection release];
NSString *responseString = [[NSString alloc] initWithData:res...
I've read up on UIWebView and can't find a specific answer to whether or not it can block a thread when loadRequest is called (like NSURL can). I've heard that there is a specific UIWebView thread that all UIWebView's try to load using (and as a result that thread will be blocked with a slow load), but will there be any effect on the mai...
I am following the instructions in the Apple dev docs: http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/cross_development/Using/using.html#//apple_ref/doc/uid/20002000-1114537
In this case, I'm trying to conditionally execute code, depending on whether or not CTFontCreateWithName is defined. Here is what...
I made a typo when creating a UITableViewCell with this code:
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"CellIdentifier";
UITableViewCell *cell = [self.tableView
dequeueReusableCellWithIdentifier:CellIdentifier];
...
Instead of loading all annotations that are in my array, I would only like to load the annotations that the user could currently see cased on how far they are zoomed in on the map. So, if the user pans to a place where there are annotations, those would be added, and if they pan away, those would be removed. I assume this would help wi...
So I have an iPhone application that utilizes a UINavigationController for setting up the views. When the application first starts, it presents the user with a UITableViewController and the user can select an item and it will push another view. Now I have it set so that my app remembers the user's last selection and automatically selec...
Hello,
I have an app which plays music files. The UI has two tab views. TabOne plays the song while TabTwo displays information about the song. I have a button which sets a global variable that identifies the song to be played. The song does play but the information displayed in TabTwo does not update.
How do I ensure that both tabs u...
Is there a way I can check to see if a value is NULL/Nil before assigning it to a BOOL?
For example, I have a value in a NSDictionary that can be either TRUE/FALSE/NULL
mySTUser.current_user_following = [[results objectForKey:@"current_user_following"]boolValue];
When the value is NULL I get the following error
*** Terminating app ...
I have an application the requires scrolling of many images.
because I can not load all the images, and save it in the memory, I am lazy loading them.
The problem is if I scroll too quickly, there are "black images" showing (images that did not manage to load).
this is the lazy loading code:
int currentImageToLoad = [self cal...
Hi there, I'd like to take control of the audio coming from MPMusicPlayerController (i.e., playing from the iPod library). For example, I'd like to apply EQ to it or do DSP, reverb, that kind of thing.
Is this possible? Is there an audio session that I can grab a handle on? Or, perhaps is there some way to play back files from the iPod ...
Finch uses OpenAL. However, when I have an instance of Sound, and say -play, the sound plays. When I call -play multiple times one after another in a fast paced way, every -play makes the current sound playback of that sound stop and restart it.
That's not what I want. Would I have to create multiple sources or buffers to get that worki...
Hi,
I subclassed UIScrollView (IPhone SDK) and overrode the (void)layoutSubviews; method.
I noticed that each time the scrollView is scrolled, this method is called.
Is that the correct behaviour or do I have mistakes in my code? If it is the default behaviour, isn't this a performance killer?
Sincerely,
heinrich
...
Hi everyone. I'm new to iPhone development and have a question I hope someone can help me with.
I have a programmer working on an iPhone app for me and when I run the app in the simulator, it works great. But when I try to run it on my actual iPhone, I get a EXC_BAD_ACCESS error and the app locks up.
Looking at the debugger, it's refe...
hi frnds,
I am facing the problem from a month and didn't find anything from google..
I am using UIView for pdf display. there is no problem with pdf but problem is with transition. I have to turn each page of pdf with realistic page turn exp. I search, dig a lot about that but i didn't get anything that how to do that.
I don't want t...
Hi
I have the following piece of code and when I use Instruments/Object Allocations, it tells me that there is a leak there (which goes down to sqlite3MemMalloc). Is there something that I should release?
if (![managedObjectContext save:&error]) {
NSLog(@"Error while saving.");
}
The save works well and doesn't trigger an error.
...
On the iphone, this code shows the cancel button:
- (IBAction)buttonPressed
{
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@"Are you sure?"
delegate:self
cancelButtonTitle:@"No way!"
...