xcode6

what is mean app installation failed

和自甴很熟 提交于 2019-12-06 10:43:22
I am using xcode 6.1 and osx 10.10 . when I am running the app in device, The alert message shows as "app installation failed" and "the packet is unknown" .my app running in ios simulator bur not not running in the device (ipad 8.1). Try the following steps 1.Check for the certificate 2.Delete the existing app from the iPad 3.Clean the Project 4.Install the application again 来源: https://stackoverflow.com/questions/26858040/what-is-mean-app-installation-failed

How to add two custom cell into tableview in storyboard in Swift?

 ̄綄美尐妖づ 提交于 2019-12-06 10:25:10
I have a tableView with two different custom cell. One cell have a switch and other a image, I have Two separated custom class for the cells, identifiers.. but I can't see this. i don't know if I need change the configuration in story board to dynamic or other thing.. Can I show two different custom cells Thanks! Check the criteria for showing each specific custom cell, then cast to that cell as needed: override func tableView(tableView: UITableView?, cellForRowAtIndexPath indexPath: NSIndexPath?) -> UITableViewCell? { if (criteria for cell 1) { let cell = tableView!

iOS 8 - Launching the application in Landscape mode

杀马特。学长 韩版系。学妹 提交于 2019-12-06 10:08:30
My iPad application supports all the orientations and it worked fine in iOS 7 as well. However in iOS 8 , launching the application in Landscape mode made my login view draw the landscape view within a portrait frame. After doing some analysis I found out that the application window does not take the correct orientation while launching in Landscape . Doing a rotation after that corrects the UI since it takes the correct orientation from that point onwards. Would someone be able to guide me through this? Thanks in advance. The issue seems to be the order of calls when you set up the window. You

How to create project without story board in xcode 6 (swift)?

萝らか妹 提交于 2019-12-06 09:43:16
问题 Can any one has practiced creating project in xcode6 (swift) without storyboard. I am able to implement func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool { // Override point for customization after application launch. self.window = UIWindow(frame: UIScreen.mainScreen().bounds) self.window!.backgroundColor = UIColor.whiteColor() self.window!.makeKeyAndVisible() var viewController: ViewController? = ViewController(nibName:

Simulate on Xcode 6 somethings wrong

删除回忆录丶 提交于 2019-12-06 08:42:42
问题 I installed Xcode 6 gm version. I created new project and I run it on iPhone 6 or iPhone 5s simulator with ios 8. Everything is fine.But When I simulate on iphone 5s deployment target ios 7.1.Device screen is not full screen.it runs like as 3.5inc screen.Do you know reason of that? Is it XCode 6's bug? 回答1: you should put launch screen for iphone 5 - 640x1136 named Default-568h@2x or use catalog assets alternatively. 回答2: Figured out a solution in my case Go to General tab of project's target

Xcode6下新建XMPP项目导入框架详解

天大地大妈咪最大 提交于 2019-12-06 08:40:42
1、xcode版本 2、xmpp 版本: https://github.com/robbiehanson/XMPPFramework 开始导入框架:(最好先在show in finder里面建立文件夹,再把xmpp框架里的东西拷贝到刚建立的文件夹,再把这些文件夹拖入工程) 第一步:先导入Vendor里面的东西 1、先导入Vendor(这里是xmpp所依赖的第三方库)文件夹里面的CocoaLumberjack。不需要添加别的库文件,编译成功。 2、再导入 CocoaAsyncSocket(xmpp底层的网络通信所使用的库),这里需要添加两个库文件: (涉及到数据加密,和安全相关)。编译成功 3、导入kissxml(用来解析xml文件,重点!)。需要导入 libxml2.dylib,然后修改项目配置。 (a)PROJECT - BuildSetting - 搜索 sear --Search Paths - Header Search Paths--路径后面添加/usr/include/libxml2 (b)原位置搜索other,linking --other linker flags ,添加 -lxml2 (c)如果编译不成功,出现tree file not find,就在TARGETS - 搜sear - search paths 添加一句$(SDKROOT)/usr/include

Xcode debugger reporting Swift dictionaries as empty (po reports {})

杀马特。学长 韩版系。学妹 提交于 2019-12-06 08:35:12
问题 When I wait until Xcode 6.1.1 hits a breakpoint after this line let metrics = ["leading" : 15.0, "size" : 44.0] and then type po metrics the debugger reports (after several seconds delay) {} , which seems wrong. po metrics.count reports 2 , which is right. Is this a feature or a bug? UPDATE The problem appears when debugging on a physical device (iPhone 5), e.g. not on a simulator (e.g. iPhone 6 Plus). 回答1: Did you try doing this way? let metrics:NSDictionary? = ["leading" : 15.0, "size" : 44

Background Fetch Does Not Appear to Fire

廉价感情. 提交于 2019-12-06 08:27:17
问题 First I really appreciate all of the wonderful inputs and comments by all on Stack Overflow. I have read many contributions but have not been able to contribute directly until now. In my app, I have performed the following listed below and have added counter to the app fetch routine to highlight the number of times fetch is called by iOS 8.1. Turned on Background Modes and enabled background fetch. Wrote code for “performFetchWithCompletionHandler”. NSLog message indicate the start and end of

How to allow permission for user's Home folder in cocoa application for mac

依然范特西╮ 提交于 2019-12-06 08:11:10
I am having a mac app in which I am deleting some data from user's Home directory. My app is rejected saying the below reason. The app only finds files in the ~/Downloads folder. It would be appropriate to have the user grant access to the Home folder. So I used NSOpenPanel for asking the access from the user but I have no idea about how to give access to user's hidden folders. EDIT I have successfully enabled sandboxing for my app but now on allow button, what should I do? Please guide me on this... Any help will be highly appreciated. Thanks in advance... Michael Dautermann I spent some time

Issue with NSDataStorage in simple reflex test game app

ⅰ亾dé卋堺 提交于 2019-12-06 08:04:50
I'm trying to store an array of numbers in NSUserDataStorage..what am I doing wrong? Thanks. import UIKit class ViewController: UIViewController { var arr = [Int]() var timer = NSTimer() var countdowntimer = NSTimer() var count = 0 var countdown = Int(arc4random_uniform(4000) + 1000) var highscore:Int! @IBOutlet weak var beginButton: UIButton! @IBOutlet weak var startButton: UILabel! @IBOutlet weak var highScoreButton: UILabel! @IBOutlet weak var timerLabel: UILabel! @IBOutlet weak var backgroundImage: UIImageView! func updateTime() { countdown = countdown - 1 if countdown <= 0 { startButton